Returns a vector of random samples from the distribution.
Namespace:
Extreme.Statistics.Distributions
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public Vector<double> Sample(
int size
)
Public Function Sample (
size As Integer
) As Vector(Of Double)
public:
Vector<double>^ Sample(
int size
)
member Sample :
size : int -> Vector<float>
Parameters
- size
- Type: SystemInt32
The number of samples to return.
Return Value
Type:
VectorDoubleA vector of
size samples
from the distribution.
This method uses the default random number generator
specified by DefaultRandomNumberGenerator
to generate a random sample from the distribution.
The return values of successive calls to this method
follow the distribution represented by this
distribution.
Reference