FastIca.Random Property

Gets or sets the random number generator used for initialization.

Definition

Namespace: Numerics.NET.Statistics.Multivariate
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.5
C#
public Random? Random { get; set; }

Property Value

Random

Remarks

The FastICA algorithm requires random initialization of the unmixing matrix. Setting this property allows control over the random number generation for reproducible results.

If null (the default), a new Random instance is created for each fit. To ensure reproducibility across runs, set this to a seeded random number generator such as MersenneTwister.

Example: ica.Random = new MersenneTwister(42);

See Also