Method Randn
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Randn(InputOutputArray, InputArray, InputArray)
fills array with normally-distributed random numbers with the specified mean and the standard deviation
public static void Randn(InputOutputArray dst, InputArray mean, InputArray stddev)
Parameters
dstInputOutputArrayThe output array of random numbers. The array must be pre-allocated and have 1 to 4 channels
meanInputArrayThe mean value (expectation) of the generated random numbers
stddevInputArrayThe standard deviation of the generated random numbers
Randn(InputOutputArray, Scalar, Scalar)
fills array with normally-distributed random numbers with the specified mean and the standard deviation
public static void Randn(InputOutputArray dst, Scalar mean, Scalar stddev)
Parameters
dstInputOutputArrayThe output array of random numbers. The array must be pre-allocated and have 1 to 4 channels
meanScalarThe mean value (expectation) of the generated random numbers
stddevScalarThe standard deviation of the generated random numbers