C# Class NSoft.NFramework.Numerics.GeometricRandomizer

기하 분포를 따르는 난수 발생기
확률 p로 당첨되는 현상금에 n회째의 응모로 처음 당첨될 확률은 Pn = p(1-p)^n-1 이다. 이 분포를 기하분포라 한다.
Inheritance: RandomizerBase
Datei anzeigen Open project: debop/NFramework

Public Methods

Method Description
GeometricRandomizer ( ) : System

생성자

GeometricRandomizer ( Func randumNumberFunc ) : System

생성자

GeometricRandomizer ( double p ) : System

생성자

GeometricRandomizer ( double p, Func randumNumberFunc ) : System

생성자

Next ( ) : double

난수 발생

Method Details

GeometricRandomizer() public method

생성자
public GeometricRandomizer ( ) : System
return System

GeometricRandomizer() public method

생성자
public GeometricRandomizer ( Func randumNumberFunc ) : System
randumNumberFunc Func 사용자 정의 난수 발생 함수
return System

GeometricRandomizer() public method

생성자
public GeometricRandomizer ( double p ) : System
p double 확률
return System

GeometricRandomizer() public method

생성자
public GeometricRandomizer ( double p, Func randumNumberFunc ) : System
p double 확률
randumNumberFunc Func 사용자 정의 난수 발생 함수
return System

Next() public method

난수 발생
public Next ( ) : double
return double