Vector.CreateRandomNormal Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

CreateRandomNormal(Int32, ArrayMutability) Constructs a new vector with normal random numbers with zero mean and unit standard deviation.
CreateRandomNormal(Int32, Random, ArrayMutability) Constructs a new vector with normal random numbers with zero mean and unit standard deviation.

CreateRandomNormal(Int32, ArrayMutability)

Constructs a new vector with normal random numbers with zero mean and unit standard deviation.
C#
public static DenseVector<double> CreateRandomNormal(
	int length,
	ArrayMutability mutability = ArrayMutability.Immutable
)

Parameters

length  Int32
The length of the vector.
mutability  ArrayMutability  (Optional)
Specifies how the vector's values may be changed. The default is mutable values.

Return Value

DenseVector<Double>
A DenseVector<T>.

CreateRandomNormal(Int32, Random, ArrayMutability)

Constructs a new vector with normal random numbers with zero mean and unit standard deviation.
C#
public static DenseVector<double> CreateRandomNormal(
	int length,
	Random random,
	ArrayMutability mutability = ArrayMutability.Immutable
)

Parameters

length  Int32
The length of the vector.
random  Random
The random number generator to use.
mutability  ArrayMutability  (Optional)
Specifies how the vector's values may be changed. The default is mutable values.

Return Value

DenseVector<Double>
A DenseVector<T>.

See Also