 | FloatRandomGumbelDistributionFill Method (RandomNumberStream, FloatVector, Int32, Int32) |
Uses the given random number stream to fill the given vector of
floats with random values.
Namespace:
CenterSpace.NMath.Core
Assembly:
NMath (in NMath.dll) Version: 7.4
Syntaxpublic void Fill(
RandomNumberStream stream,
FloatVector v,
int start,
int n
)
Public Sub Fill (
stream As RandomNumberStream,
v As FloatVector,
start As Integer,
n As Integer
)
public:
void Fill(
RandomNumberStream^ stream,
FloatVector^ v,
int start,
int n
)
member Fill :
stream : RandomNumberStream *
v : FloatVector *
start : int *
n : int -> unit
Parameters
- stream
- Type: CenterSpace.NMath.CoreRandomNumberStream
Random number stream. - v
- Type: CenterSpace.NMath.CoreFloatVector
Vector to fill. - start
- Type: SystemInt32
Index at which to start placing random deviates. - n
- Type: SystemInt32
Number of random deviates to produce.
ExceptionsException | Condition |
---|
InvalidArgumentException | Thrown if n + start exceeds the length of the given vector
or if the vector has stride is not equal to one. |
Remarksv must be initialized before calling this method.
See Also