Rng class
Constructors
- Rng()
-
factory
- Rng.fromSeed(int seed)
-
factory
- Rng.fromTheRng(RNGPtr p)
-
factory
Properties
Methods
-
dispose(
) → void -
fill(
Mat mat, int distType, double a, double b, {bool saturateRange = false, bool inplace = false}) → Mat - Fills arrays with random numbers. https://docs.opencv.org/4.x/d1/dd6/classcv_1_1RNG.html#ad26f2b09d9868cf108e84c9814aa682d
-
fillAsync(
Mat mat, int distType, double a, double b, {bool saturateRange = false, bool inplace = false}) → Future< Mat> - Fills arrays with random numbers. https://docs.opencv.org/4.x/d1/dd6/classcv_1_1RNG.html#ad26f2b09d9868cf108e84c9814aa682d
-
gaussian(
double sigma, {int? maxCount}) → Stream< double> - The method transforms the state using the MWC algorithm and returns the next random number from the Gaussian distribution N(0,sigma) . That is, the mean value of the returned random numbers is zero and the standard deviation is the specified sigma . https://docs.opencv.org/4.x/d1/dd6/classcv_1_1RNG.html#a8df8ce4dc7d15916cee743e5a884639d
-
next(
{int? maxCount}) → Stream< int> - The method updates the state using the MWC algorithm and returns the next 32-bit random number. https://docs.opencv.org/4.x/d1/dd6/classcv_1_1RNG.html#ad8d035897a5e31e7fc3e1e6c378c32f5
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
uniform(
num a, num b, {int? maxCount}) → Stream< num> - returns uniformly distributed integer random number from [a,b) range The methods transform the state using the MWC algorithm and return the next uniformly-distributed random number of the specified type, deduced from the input parameter type, from the range [a, b) . https://docs.opencv.org/4.x/d1/dd6/classcv_1_1RNG.html#a8325cc562269b47bcac2343639b6fafc
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- finalizer → NativeFinalizer
-
final