Changes RNG range while preserving RNG state
Namespace: OpenCvSharp
Assembly: OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void RandSetRange( CvRandState state, double param1, double param2, int index )
Parameters
- state
- Type: OpenCvSharpCvRandState
CvRandState structure to be opdated - param1
- Type: SystemDouble
The first parameter of distribution. In case of uniform distribution it is the inclusive lower boundary of random numbers range. In case of normal distribution it is the mean value of random numbers. - param2
- Type: SystemDouble
The second parameter of distribution. In case of uniform distribution it is the exclusive upper boundary of random numbers range. In case of normal distribution it is the standard deviation of random numbers. - index
- Type: SystemInt32
Index dimension to initialize, -1 = all
See Also