class Statistics::InverseGamma

Overview

Class representing an inverse-gamma distribution

Defined in:

gsl/maths/statistics/distributions.cr

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(shape : Float64, scale : Float64) #

[View source]

Class Method Detail

def self.log_pdf(x : Float64, shape : Float64, scale : Float64) #

[View source]
def self.pdf(x : Float64, shape : Float64, scale : Float64) : Float64 #

[View source]

Instance Method Detail

def log_pdf(x : Float64) : Float64 #

[View source]
def pdf(x : Float64) : Float64 #

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

[View source]