Click or drag to resize

VectorRandom Method (Int32, CUDistribution)

Creates the vector of given size with elements that are sampled from the specified distribution.

Namespace:  FinMath.LinearAlgebra
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
public static Vector Random(
	int size,
	CUDistribution distribution
)

Parameters

size
Type: SystemInt32
The size of vector to create.
distribution
Type: FinMath.Statistics.DistributionsCUDistribution
Continuous univariate distribution.

Return Value

Type: Vector
The created vector.
See Also