|
VectorSample Method (Decimal)
|
Returns a vector containing indices (0, 1, 2, ..., n - 1) in random
order. The vector grows up to to size, but does not
include size among its values.
Namespace:
Accord.Math
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public static decimal[] Sample(
decimal size
)
Public Shared Function Sample (
size As Decimal
) As Decimal()
Request Example
View SourceParameters
- size
- Type: SystemDecimal
The size of the sample vector to be generated.
Return Value
Type:
DecimalExamples var a = Vector.Sample(3);
var b = Vector.Sample(10);
foreach (var i in Vector.Sample(5))
{
}
See Also