Table of Contents

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

dst InputOutputArray

The output array of random numbers. The array must be pre-allocated and have 1 to 4 channels

mean InputArray

The mean value (expectation) of the generated random numbers

stddev InputArray

The 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

dst InputOutputArray

The output array of random numbers. The array must be pre-allocated and have 1 to 4 channels

mean Scalar

The mean value (expectation) of the generated random numbers

stddev Scalar

The standard deviation of the generated random numbers