class Distribution1D
- Distribution1D
- Reference
- Object
Defined in:
distribution.crConstructors
-
.new(f : Array(Float64))
Compute a 1D distrubution from a piecewise constant function by converting it to a CDF
Instance Method Summary
- #cdf : Array(Float64)
- #count : Int32
- #func : Array(Float64)
- #func_integral : Float64
- #sample_discrete : ::Tuple(Int32, Float64)
Constructor Detail
def self.new(f : Array(Float64))
#
Compute a 1D distrubution from a piecewise constant function by converting it to a CDF