class Distribution1D

Defined in:

distribution.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(f : Array(Float64)) #

Compute a 1D distrubution from a piecewise constant function by converting it to a CDF


[View source]

Instance Method Detail

def cdf : Array(Float64) #

[View source]
def count : Int32 #

[View source]
def func : Array(Float64) #

[View source]
def func_integral : Float64 #

[View source]
def sample_discrete : ::Tuple(Int32, Float64) #

[View source]