Versions in this module Expand all Collapse all v0 v0.6.5 Feb 5, 2020 v0.6.3 Feb 5, 2020 Changes in this version + var UnitNormal = Normal + var UnitUniform = Uniform + type Bernoulli struct + P float64 + Src rand.Source + func (Bernoulli) NumParameters() int + func (b Bernoulli) CDF(x float64) float64 + func (b Bernoulli) Entropy() float64 + func (b Bernoulli) ExKurtosis() float64 + func (b Bernoulli) LogProb(x float64) float64 + func (b Bernoulli) Mean() float64 + func (b Bernoulli) Median() float64 + func (b Bernoulli) Prob(x float64) float64 + func (b Bernoulli) Quantile(p float64) float64 + func (b Bernoulli) Rand() float64 + func (b Bernoulli) Skewness() float64 + func (b Bernoulli) StdDev() float64 + func (b Bernoulli) Survival(x float64) float64 + func (b Bernoulli) Variance() float64 + type Beta struct + Alpha float64 + Beta float64 + Src rand.Source + func (b Beta) CDF(x float64) float64 + func (b Beta) Entropy() float64 + func (b Beta) ExKurtosis() float64 + func (b Beta) LogProb(x float64) float64 + func (b Beta) Mean() float64 + func (b Beta) Mode() float64 + func (b Beta) NumParameters() int + func (b Beta) Prob(x float64) float64 + func (b Beta) Quantile(p float64) float64 + func (b Beta) Rand() float64 + func (b Beta) StdDev() float64 + func (b Beta) Survival(x float64) float64 + func (b Beta) Variance() float64 + type Bhattacharyya struct + func (Bhattacharyya) DistBeta(l, r Beta) float64 + func (Bhattacharyya) DistNormal(l, r Normal) float64 + type Binomial struct + N float64 + P float64 + Src rand.Source + func (Binomial) NumParameters() int + func (b Binomial) CDF(x float64) float64 + func (b Binomial) ExKurtosis() float64 + func (b Binomial) LogProb(x float64) float64 + func (b Binomial) Mean() float64 + func (b Binomial) Prob(x float64) float64 + func (b Binomial) Rand() float64 + func (b Binomial) Skewness() float64 + func (b Binomial) StdDev() float64 + func (b Binomial) Survival(x float64) float64 + func (b Binomial) Variance() float64 + type Categorical struct + func NewCategorical(w []float64, src rand.Source) Categorical + func (c Categorical) CDF(x float64) float64 + func (c Categorical) Entropy() float64 + func (c Categorical) Len() int + func (c Categorical) LogProb(x float64) float64 + func (c Categorical) Mean() float64 + func (c Categorical) Prob(x float64) float64 + func (c Categorical) Rand() float64 + func (c Categorical) Reweight(idx int, w float64) + func (c Categorical) ReweightAll(w []float64) + type ChiSquared struct + K float64 + Src rand.Source + func (c ChiSquared) CDF(x float64) float64 + func (c ChiSquared) ExKurtosis() float64 + func (c ChiSquared) LogProb(x float64) float64 + func (c ChiSquared) Mean() float64 + func (c ChiSquared) Mode() float64 + func (c ChiSquared) NumParameters() int + func (c ChiSquared) Prob(x float64) float64 + func (c ChiSquared) Quantile(p float64) float64 + func (c ChiSquared) Rand() float64 + func (c ChiSquared) StdDev() float64 + func (c ChiSquared) Survival(x float64) float64 + func (c ChiSquared) Variance() float64 + type Exponential struct + Rate float64 + Src rand.Source + func (Exponential) ExKurtosis() float64 + func (Exponential) Mode() float64 + func (Exponential) NumParameters() int + func (Exponential) NumSuffStat() int + func (Exponential) Skewness() float64 + func (Exponential) SuffStat(suffStat, samples, weights []float64) (nSamples float64) + func (e *Exponential) ConjugateUpdate(suffStat []float64, nSamples float64, priorStrength []float64) + func (e *Exponential) Fit(samples, weights []float64) + func (e Exponential) CDF(x float64) float64 + func (e Exponential) Entropy() float64 + func (e Exponential) LogProb(x float64) float64 + func (e Exponential) Mean() float64 + func (e Exponential) Median() float64 + func (e Exponential) Prob(x float64) float64 + func (e Exponential) Quantile(p float64) float64 + func (e Exponential) Rand() float64 + func (e Exponential) Score(deriv []float64, x float64) []float64 + func (e Exponential) ScoreInput(x float64) float64 + func (e Exponential) StdDev() float64 + func (e Exponential) Survival(x float64) float64 + func (e Exponential) Variance() float64 + type F struct + D1 float64 + D2 float64 + Src rand.Source + func (f F) CDF(x float64) float64 + func (f F) ExKurtosis() float64 + func (f F) LogProb(x float64) float64 + func (f F) Mean() float64 + func (f F) Mode() float64 + func (f F) NumParameters() int + func (f F) Prob(x float64) float64 + func (f F) Quantile(p float64) float64 + func (f F) Rand() float64 + func (f F) Skewness() float64 + func (f F) StdDev() float64 + func (f F) Survival(x float64) float64 + func (f F) Variance() float64 + type Gamma struct + Alpha float64 + Beta float64 + Src rand.Source + func (Gamma) NumParameters() int + func (g Gamma) CDF(x float64) float64 + func (g Gamma) ExKurtosis() float64 + func (g Gamma) LogProb(x float64) float64 + func (g Gamma) Mean() float64 + func (g Gamma) Mode() float64 + func (g Gamma) Prob(x float64) float64 + func (g Gamma) Quantile(p float64) float64 + func (g Gamma) Rand() float64 + func (g Gamma) StdDev() float64 + func (g Gamma) Survival(x float64) float64 + func (g Gamma) Variance() float64 + type GumbelRight struct + Beta float64 + Mu float64 + Src rand.Source + func (GumbelRight) NumParameters() int + func (GumbelRight) Skewness() float64 + func (g GumbelRight) CDF(x float64) float64 + func (g GumbelRight) Entropy() float64 + func (g GumbelRight) ExKurtosis() float64 + func (g GumbelRight) LogProb(x float64) float64 + func (g GumbelRight) Mean() float64 + func (g GumbelRight) Median() float64 + func (g GumbelRight) Mode() float64 + func (g GumbelRight) Prob(x float64) float64 + func (g GumbelRight) Quantile(p float64) float64 + func (g GumbelRight) Rand() float64 + func (g GumbelRight) StdDev() float64 + func (g GumbelRight) Survival(x float64) float64 + func (g GumbelRight) Variance() float64 + type Hellinger struct + func (Hellinger) DistBeta(l, r Beta) float64 + func (Hellinger) DistNormal(l, r Normal) float64 + type InverseGamma struct + Alpha float64 + Beta float64 + Src rand.Source + func (InverseGamma) NumParameters() int + func (g InverseGamma) CDF(x float64) float64 + func (g InverseGamma) ExKurtosis() float64 + func (g InverseGamma) LogProb(x float64) float64 + func (g InverseGamma) Mean() float64 + func (g InverseGamma) Mode() float64 + func (g InverseGamma) Prob(x float64) float64 + func (g InverseGamma) Quantile(p float64) float64 + func (g InverseGamma) Rand() float64 + func (g InverseGamma) StdDev() float64 + func (g InverseGamma) Survival(x float64) float64 + func (g InverseGamma) Variance() float64 + type KullbackLeibler struct + func (KullbackLeibler) DistBeta(l, r Beta) float64 + func (KullbackLeibler) DistNormal(l, r Normal) float64 + type Laplace struct + Mu float64 + Scale float64 + Src rand.Source + func (Laplace) Skewness() float64 + func (l *Laplace) Fit(samples, weights []float64) + func (l *Laplace) UnmarshalParameters(p []Parameter) + func (l Laplace) CDF(x float64) float64 + func (l Laplace) Entropy() float64 + func (l Laplace) ExKurtosis() float64 + func (l Laplace) LogProb(x float64) float64 + func (l Laplace) MarshalParameters(p []Parameter) + func (l Laplace) Mean() float64 + func (l Laplace) Median() float64 + func (l Laplace) Mode() float64 + func (l Laplace) NumParameters() int + func (l Laplace) Prob(x float64) float64 + func (l Laplace) Quantile(p float64) float64 + func (l Laplace) Rand() float64 + func (l Laplace) Score(deriv []float64, x float64) []float64 + func (l Laplace) ScoreInput(x float64) float64 + func (l Laplace) StdDev() float64 + func (l Laplace) Survival(x float64) float64 + func (l Laplace) Variance() float64 + type LogNormal struct + Mu float64 + Sigma float64 + Src rand.Source + func (LogNormal) NumParameters() int + func (l LogNormal) CDF(x float64) float64 + func (l LogNormal) Entropy() float64 + func (l LogNormal) ExKurtosis() float64 + func (l LogNormal) LogProb(x float64) float64 + func (l LogNormal) Mean() float64 + func (l LogNormal) Median() float64 + func (l LogNormal) Mode() float64 + func (l LogNormal) Prob(x float64) float64 + func (l LogNormal) Quantile(p float64) float64 + func (l LogNormal) Rand() float64 + func (l LogNormal) Skewness() float64 + func (l LogNormal) StdDev() float64 + func (l LogNormal) Survival(x float64) float64 + func (l LogNormal) Variance() float64 + type LogProber interface + LogProb func(float64) float64 + type Normal struct + Mu float64 + Sigma float64 + Src rand.Source + func (Normal) ExKurtosis() float64 + func (Normal) NumParameters() int + func (Normal) NumSuffStat() int + func (Normal) Skewness() float64 + func (Normal) SuffStat(suffStat, samples, weights []float64) (nSamples float64) + func (n *Normal) ConjugateUpdate(suffStat []float64, nSamples float64, priorStrength []float64) + func (n *Normal) Fit(samples, weights []float64) + func (n Normal) CDF(x float64) float64 + func (n Normal) Entropy() float64 + func (n Normal) LogProb(x float64) float64 + func (n Normal) Mean() float64 + func (n Normal) Median() float64 + func (n Normal) Mode() float64 + func (n Normal) Prob(x float64) float64 + func (n Normal) Quantile(p float64) float64 + func (n Normal) Rand() float64 + func (n Normal) Score(deriv []float64, x float64) []float64 + func (n Normal) ScoreInput(x float64) float64 + func (n Normal) StdDev() float64 + func (n Normal) Survival(x float64) float64 + func (n Normal) Variance() float64 + type Parameter struct + Name string + Value float64 + type Pareto struct + Alpha float64 + Src rand.Source + Xm float64 + func (p Pareto) CDF(x float64) float64 + func (p Pareto) Entropy() float64 + func (p Pareto) ExKurtosis() float64 + func (p Pareto) LogProb(x float64) float64 + func (p Pareto) Mean() float64 + func (p Pareto) Median() float64 + func (p Pareto) Mode() float64 + func (p Pareto) NumParameters() int + func (p Pareto) Prob(x float64) float64 + func (p Pareto) Rand() float64 + func (p Pareto) StdDev() float64 + func (p Pareto) Survival(x float64) float64 + func (p Pareto) Variance() float64 + type Poisson struct + Lambda float64 + Src rand.Source + func (Poisson) NumParameters() int + func (p Poisson) CDF(x float64) float64 + func (p Poisson) ExKurtosis() float64 + func (p Poisson) LogProb(x float64) float64 + func (p Poisson) Mean() float64 + func (p Poisson) Prob(x float64) float64 + func (p Poisson) Rand() float64 + func (p Poisson) Skewness() float64 + func (p Poisson) StdDev() float64 + func (p Poisson) Survival(x float64) float64 + func (p Poisson) Variance() float64 + type Quantiler interface + Quantile func(p float64) float64 + type RandLogProber interface + type Rander interface + Rand func() float64 + type StudentsT struct + Mu float64 + Nu float64 + Sigma float64 + Src rand.Source + func (StudentsT) NumParameters() int + func (s StudentsT) CDF(x float64) float64 + func (s StudentsT) LogProb(x float64) float64 + func (s StudentsT) Mean() float64 + func (s StudentsT) Mode() float64 + func (s StudentsT) Prob(x float64) float64 + func (s StudentsT) Quantile(p float64) float64 + func (s StudentsT) Rand() float64 + func (s StudentsT) StdDev() float64 + func (s StudentsT) Survival(x float64) float64 + func (s StudentsT) Variance() float64 + type Triangle struct + func NewTriangle(a, b, c float64, src rand.Source) Triangle + func (Triangle) ExKurtosis() float64 + func (Triangle) NumParameters() int + func (t *Triangle) UnmarshalParameters(p []Parameter) + func (t Triangle) CDF(x float64) float64 + func (t Triangle) Entropy() float64 + func (t Triangle) LogProb(x float64) float64 + func (t Triangle) MarshalParameters(p []Parameter) + func (t Triangle) Mean() float64 + func (t Triangle) Median() float64 + func (t Triangle) Mode() float64 + func (t Triangle) Prob(x float64) float64 + func (t Triangle) Quantile(p float64) float64 + func (t Triangle) Rand() float64 + func (t Triangle) Skewness() float64 + func (t Triangle) StdDev() float64 + func (t Triangle) Survival(x float64) float64 + func (t Triangle) Variance() float64 + type Uniform struct + Max float64 + Min float64 + Src rand.Source + func (Uniform) ExKurtosis() float64 + func (Uniform) NumParameters() int + func (Uniform) Skewness() float64 + func (u *Uniform) UnmarshalParameters(p []Parameter) + func (u Uniform) CDF(x float64) float64 + func (u Uniform) Entropy() float64 + func (u Uniform) LogProb(x float64) float64 + func (u Uniform) MarshalParameters(p []Parameter) + func (u Uniform) Mean() float64 + func (u Uniform) Median() float64 + func (u Uniform) Prob(x float64) float64 + func (u Uniform) Quantile(p float64) float64 + func (u Uniform) Rand() float64 + func (u Uniform) StdDev() float64 + func (u Uniform) Survival(x float64) float64 + func (u Uniform) Variance() float64 + type Weibull struct + K float64 + Lambda float64 + Src rand.Source + func (Weibull) NumParameters() int + func (w Weibull) CDF(x float64) float64 + func (w Weibull) Entropy() float64 + func (w Weibull) ExKurtosis() float64 + func (w Weibull) LogCDF(x float64) complex128 + func (w Weibull) LogProb(x float64) float64 + func (w Weibull) LogSurvival(x float64) float64 + func (w Weibull) Mean() float64 + func (w Weibull) Median() float64 + func (w Weibull) Mode() float64 + func (w Weibull) Prob(x float64) float64 + func (w Weibull) Quantile(p float64) float64 + func (w Weibull) Rand() float64 + func (w Weibull) Score(deriv []float64, x float64) []float64 + func (w Weibull) ScoreInput(x float64) float64 + func (w Weibull) Skewness() float64 + func (w Weibull) StdDev() float64 + func (w Weibull) Survival(x float64) float64 + func (w Weibull) Variance() float64