| RandomNumberGeneratorGaussian Method (Int32, Double, Int32, Double, Double) |
Draws a sample point from a Gaussian distribution having the
specified parameters.
Namespace:
Novacta.Analytics
Assembly:
Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax public void Gaussian(
int sampleSize,
double[] destinationArray,
int destinationIndex,
double mu,
double sigma
)
Public Sub Gaussian (
sampleSize As Integer,
destinationArray As Double(),
destinationIndex As Integer,
mu As Double,
sigma As Double
)
public:
void Gaussian(
int sampleSize,
array<double>^ destinationArray,
int destinationIndex,
double mu,
double sigma
)
member Gaussian :
sampleSize : int *
destinationArray : float[] *
destinationIndex : int *
mu : float *
sigma : float -> unit
Parameters
- sampleSize
- Type: SystemInt32
The sample size. - destinationArray
- Type: SystemDouble
The destination array that
receives the sampled data. - destinationIndex
- Type: SystemInt32
The index in
destinationArray at which storing
begins. - mu
- Type: SystemDouble
The location parameter. - sigma
- Type: SystemDouble
The scale parameter.
Exceptions Exception | Condition |
---|
ArgumentNullException | destinationArray is null.
|
ArgumentOutOfRangeException | sampleSize is not positive.
-or- destinationIndex is
negative.
-or- sigma is not positive.
|
ArgumentException |
Parameter sampleSize must be less than or
equal to the
difference between the length of
parameter destinationArray
and destinationIndex.
|
See Also