Uses the given random number stream to fill the given vector of doubles with random values.

Namespace: CenterSpace.NMath.Core
Assembly: NMathPremium (in NMathPremium.dll) Version: 5.3.0.0

Syntax

C#
public void Fill(
	RandomNumberStream stream,
	DoubleVector v,
	int start,
	int n
)
Visual Basic
Public Sub Fill ( _
	stream As RandomNumberStream, _
	v As DoubleVector, _
	start As Integer, _
	n As Integer _
)
Visual C++
public:
void Fill(
	RandomNumberStream^ stream, 
	DoubleVector^ v, 
	int start, 
	int n
)

Parameters

stream
Type: CenterSpace.NMath.Core..::..RandomNumberStream
Random number stream.
v
Type: CenterSpace.NMath.Core..::..DoubleVector
Vector to fill.
start
Type: System..::..Int32
Index at which to start placing random deviates.
n
Type: System..::..Int32
Number of random deviates to produce.

Remarks

v must be initialized before calling this method.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::..InvalidArgumentExceptionThrown if n + start exceeds the length of the given vector or if the vector has stride is not equal to one.

See Also