C# 클래스 MyMediaLite.Util.Random

Draws random values from a normal distibuted using a simple rejection method
상속: System.Random
파일 보기 프로젝트 열기: zenogantner/MML-KDD

공개 메소드들

메소드 설명
GetInstance ( ) : Random

Gets the instance. If it does not exist yet, it will be created.

InitInstance ( int seed ) : void

Initializes the instance with a given random seed

NextExp ( double lambda ) : double

Nexts the exp

NextNormal ( ) : double

Get the next number from the standard normal distribution

NextNormal ( double mean, double stdev ) : double

Draw the next number from a normal distribution

Random ( ) : System

Default constructor

Random ( int seed ) : System

Creates a Random object initialized with a seed

메소드 상세

GetInstance() 공개 정적인 메소드

Gets the instance. If it does not exist yet, it will be created.
public static GetInstance ( ) : Random
리턴 Random

InitInstance() 공개 정적인 메소드

Initializes the instance with a given random seed
public static InitInstance ( int seed ) : void
seed int a seed value
리턴 void

NextExp() 공개 메소드

Nexts the exp
public NextExp ( double lambda ) : double
lambda double
리턴 double

NextNormal() 공개 메소드

Get the next number from the standard normal distribution
public NextNormal ( ) : double
리턴 double

NextNormal() 공개 메소드

Draw the next number from a normal distribution
public NextNormal ( double mean, double stdev ) : double
mean double mean of the Gaussian
stdev double standard deviation of the Gaussian
리턴 double

Random() 공개 메소드

Default constructor
public Random ( ) : System
리턴 System

Random() 공개 메소드

Creates a Random object initialized with a seed
public Random ( int seed ) : System
seed int An integer for initializing the random number generator
리턴 System