class Statistics::Normal

Defined in:

gsl/maths/statistics/distributions.cr:95
gsl/maths/statistics/distributions.cr:131

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Statistics::ContinuousDistribution

sample(rng : Random | Nil = nil) : Float64
sample(n : Int32, rng : Random | Nil = nil) : Array(Float64)
sample

Class methods inherited from class Statistics::ContinuousDistribution

sample(n : Int32, *args) : Array(Float64) sample

Constructor Detail

def self.new(mean : Float64, std : Float64) #

[View source]

Class Method Detail

def self.pdf(mean : Float64, std : Float64, rng : Random | Nil = nil) #

[View source]
def self.sample(mean : Float64, std : Float64, rng : Random | Nil = nil) : Float64 #

[View source]

Instance Method Detail

def cdf(x : Float64) : Float64 #

[View source]
def mean : Float64 #

def mean=(mean : Float64) #

def pdf(x : Float64) : Float64 #

[View source]
def sample(rng : Random | Nil = nil) : Float64 #

[View source]
def std : Float64 #

def std=(std : Float64) #