module SHAInet::RandomNormal
Extended Modules
Defined in:
shainet/math/random_normal.crInstance Method Summary
-
#metropolis(n : Int32 = 1, mu : Float64 = 0.0, sigma : Float64 = 1.0)
Sampling n points from a normal distribution with mu & sigma, using the Metropolis-Hastings algorithm
-
#pdf(x : Float64, mu : Float64, sigma : Float64)
Normal probability density function calculation
- #sample(n : Int32 = 1, mu : Float64 = 0.0, sigma : Float64 = 1.0)
Instance Method Detail
Sampling n points from a normal distribution with mu & sigma, using the Metropolis-Hastings algorithm
def pdf(x : Float64, mu : Float64, sigma : Float64)
#
Normal probability density function calculation