C# 클래스 OpenCvSharp.RNG

Random Number Generator. The class implements RNG using Multiply-with-Carry algorithm.
operations.hpp
파일 보기 프로젝트 열기: shimat/opencvsharp 1 사용 예제들

공개 메소드들

메소드 설명
Fill ( OpenCvSharp.InputOutputArray mat, DistributionType distType, InputArray a, InputArray b, bool saturateRange = false ) : void

Gaussian ( double sigma ) : double

returns Gaussian random variate with mean zero.

Next ( ) : uint

updates the state and returns the next 32-bit unsigned integer random number

RNG ( ) : System

RNG ( ulong state ) : System

Run ( ) : uint

Run ( uint n ) : uint

returns a random integer sampled uniformly from [0, N).

Uniform ( double a, double b ) : double

returns uniformly distributed double-precision floating-point random number from [a,b) range

Uniform ( float a, float b ) : float

returns uniformly distributed floating-point random number from [a,b) range

Uniform ( int a, int b ) : int

returns uniformly distributed integer random number from [a,b) range

메소드 상세

Fill() 공개 메소드

public Fill ( OpenCvSharp.InputOutputArray mat, DistributionType distType, InputArray a, InputArray b, bool saturateRange = false ) : void
mat OpenCvSharp.InputOutputArray
distType DistributionType
a InputArray
b InputArray
saturateRange bool
리턴 void

Gaussian() 공개 메소드

returns Gaussian random variate with mean zero.
public Gaussian ( double sigma ) : double
sigma double
리턴 double

Next() 공개 메소드

updates the state and returns the next 32-bit unsigned integer random number
public Next ( ) : uint
리턴 uint

RNG() 공개 메소드

public RNG ( ) : System
리턴 System

RNG() 공개 메소드

public RNG ( ulong state ) : System
state ulong
리턴 System

Run() 공개 메소드

public Run ( ) : uint
리턴 uint

Run() 공개 메소드

returns a random integer sampled uniformly from [0, N).
public Run ( uint n ) : uint
n uint
리턴 uint

Uniform() 공개 메소드

returns uniformly distributed double-precision floating-point random number from [a,b) range
public Uniform ( double a, double b ) : double
a double
b double
리턴 double

Uniform() 공개 메소드

returns uniformly distributed floating-point random number from [a,b) range
public Uniform ( float a, float b ) : float
a float
b float
리턴 float

Uniform() 공개 메소드

returns uniformly distributed integer random number from [a,b) range
public Uniform ( int a, int b ) : int
a int
b int
리턴 int