Click or drag to resize

NormalGammaSample(Random, Double, Double, Double, Double) Method

Generates a sample from the NormalGamma distribution.

Namespace: Altaxo.Calc.Distributions
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static MeanPrecisionPair Sample(
	Random rnd,
	double meanLocation,
	double meanScale,
	double precisionShape,
	double precisionInverseScale
)

Parameters

rnd  Random
The random number generator to use.
meanLocation  Double
The location of the mean.
meanScale  Double
The scale of the mean.
precisionShape  Double
The shape of the precision.
precisionInverseScale  Double
The inverse scale of the precision.

Return Value

MeanPrecisionPair
a sample from the distribution.
See Also