Click or drag to resize

WishartSample Method (RandomGenerator, Matrix, Double)

Static method which generates sample of Wishart distribution with user specified generator and parameters.

Namespace:  FinMath.Statistics.Distributions
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
public static Matrix Sample(
	RandomGenerator generator,
	Matrix scale,
	double degreesOfFreedom
)

Parameters

generator
Type: FinMath.StatisticsRandomGenerator
Base random number generator.
scale
Type: FinMath.LinearAlgebraMatrix
Scale matrix.
degreesOfFreedom
Type: SystemDouble
Number of degrees of freedom. Must be greater than scale.Rows - 1.

Return Value

Type: Matrix
Sample matrix if Scale matrix is positive definite or null otherwise.
See Also