Fills a list with normal random numbers with zero mean and unit
standard deviation.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static void FillNormal(
this Random random,
IList<double> samples,
int startIndex,
int length
)
<ExtensionAttribute>
Public Shared Sub FillNormal (
random As Random,
samples As IList(Of Double),
startIndex As Integer,
length As Integer
)
public:
[ExtensionAttribute]
static void FillNormal(
Random^ random,
IList<double>^ samples,
int startIndex,
int length
)
[<ExtensionAttribute>]
static member FillNormal :
random : Random *
samples : IList<float> *
startIndex : int *
length : int -> unit
Parameters
- random
- Type: SystemRandom
A random number generator used to generate
the samples. - samples
- Type: System.Collections.GenericIListDouble
A Double array. - startIndex
- Type: SystemInt32
The zero-based index at which to begin filling the samples array. - length
- Type: SystemInt32
The number of samples to provide.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Random. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Reference