C# Класс MyMediaLite.Util.Random

Draws random values from a normal distibuted using a simple rejection method
Наследование: System.Random
Показать файл Открыть проект

Открытые методы

Метод Описание
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