Click or drag to resize
Accord.NET (logo)

ToolsRandomCovariance Method

Namespace:  Accord.Statistics
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public static double[,] RandomCovariance(
	int size,
	double minValue,
	double maxValue
)
Request Example View Source

Parameters

size
Type: SystemInt32
The size of the square matrix.
minValue
Type: SystemDouble
The minimum value for a diagonal element.
maxValue
Type: SystemDouble
The maximum size for a diagonal element.

Return Value

Type: Double
A square, positive-definite matrix which can be interpreted as a covariance matrix.
See Also