Fills the destination array with uniformly or normally distributed random numbers.
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.1.1150 (2.2.1.1150)
Syntax
C# | Visual Basic | Visual C++ |
public: static void cvRandArr( unsigned long long% rng, IntPtr arr, RAND_TYPE dist_type, MCvScalar param1, MCvScalar param2 )
Parameters
- rng
- UInt64%
the seed for the random number generator
- arr
- IntPtr
The destination array
- dist_type
- RAND_TYPE
Distribution type
- param1
- MCvScalar
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
- MCvScalar
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