| RandomNumberGeneratorUniform Method (Int32, Double, Int32, Double, Double) |
Draws a sample from a Uniform distribution defined on the specified interval
and returns it in a destination array.
Namespace:
Novacta.Analytics
Assembly:
Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax public void Uniform(
int sampleSize,
double[] destinationArray,
int destinationIndex,
double lowerBound,
double upperBound
)
Public Sub Uniform (
sampleSize As Integer,
destinationArray As Double(),
destinationIndex As Integer,
lowerBound As Double,
upperBound As Double
)
public:
void Uniform(
int sampleSize,
array<double>^ destinationArray,
int destinationIndex,
double lowerBound,
double upperBound
)
member Uniform :
sampleSize : int *
destinationArray : float[] *
destinationIndex : int *
lowerBound : float *
upperBound : 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. - lowerBound
- Type: SystemDouble
The interval lower bound. - upperBound
- Type: SystemDouble
The interval upper bound.
Exceptions Exception | Condition |
---|
ArgumentNullException | destinationArray is null.
|
ArgumentOutOfRangeException | sampleSize is not positive.
-or- destinationIndex is
negative.
|
ArgumentException |
Parameter sampleSize must be less than or
equal to the
difference between the length of
parameter destinationArray
and destinationIndex.
-or- upperBound is not greater
than lowerBound.
|
See Also