C# Class NSoft.NFramework.Numerics.Distributions.Discrete.DiscreteUniform

정수값을 변량으로 균일하게 이산 분포를 합니다.. 이 분포는 상하한 값을 포함합니다. Wikipedia - Discrete uniform distribution.

The distribution will use the System.Random by default. Users can set the random number generator by using the RandomSource property.

The statistics classes will check all the incoming parameters whether they are in the allowed range. This might involve heavy computation. Optionally, by setting Control.CheckDistributionParameters to false, all parameter checks can be turned off.

Inheritance: IDiscreteDistribution
Afficher le fichier Open project: debop/NFramework Class Usage Examples

Méthodes publiques

Méthode Description
CumulativeDistribution ( double x ) : double

확률 분포 계산을 위한 누적분포함수

DiscreteUniform ( int lower, int upper, Func randomFactory = null ) : System
Probability ( int k ) : double

분포의 확률

ProbabilityLn ( int k ) : double

분포의 Log 확률

Sample ( ) : int

분포의 데이타를 반환합니다.

Sample ( Random rnd, int lower, int upper ) : int
Samples ( ) : IEnumerable

분포의 무작위 데이타를 열거합니다.

Samples ( Random rnd, int lower, int upper ) : IEnumerable

Private Methods

Méthode Description
AssertParameters ( int lower, int upper ) : void
SampleUniform ( Random rnd, int lower, int upper ) : int

상하한을 포함한 균일한 분포를 형성하는 데이타를 생성합니다.

SetParameters ( int lower, int upper ) : void

Method Details

CumulativeDistribution() public méthode

확률 분포 계산을 위한 누적분포함수
public CumulativeDistribution ( double x ) : double
x double The location at which to compute the cumulative distribution function.
Résultat double

DiscreteUniform() public méthode

public DiscreteUniform ( int lower, int upper, Func randomFactory = null ) : System
lower int
upper int
randomFactory Func
Résultat System

Probability() public méthode

분포의 확률
public Probability ( int k ) : double
k int
Résultat double

ProbabilityLn() public méthode

분포의 Log 확률
public ProbabilityLn ( int k ) : double
k int
Résultat double

Sample() public méthode

분포의 데이타를 반환합니다.
public Sample ( ) : int
Résultat int

Sample() public static méthode

public static Sample ( Random rnd, int lower, int upper ) : int
rnd System.Random
lower int
upper int
Résultat int

Samples() public méthode

분포의 무작위 데이타를 열거합니다.
public Samples ( ) : IEnumerable
Résultat IEnumerable

Samples() public static méthode

public static Samples ( Random rnd, int lower, int upper ) : IEnumerable
rnd System.Random
lower int
upper int
Résultat IEnumerable