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

베르누이 분포
Inheritance: IDiscreteDistribution
Mostrar archivo Open project: debop/NFramework

Public Methods

Method Description
Bernoulli ( double p = 0.0, Func randomFactory = null ) : System
CumulativeDistribution ( double x ) : double

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

Probability ( int k ) : double

분포의 확률

ProbabilityLn ( int k ) : double

분포의 Log 확률

Sample ( ) : int

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

Sample ( Random rnd, double p ) : int

Samples a Bernoulli distributed random variable.

Samples ( ) : IEnumerable

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

Samples ( Random rnd, double p ) : IEnumerable

Samples a sequence of Bernoulli distributed random variables.

ToString ( ) : string

Private Methods

Method Description
AssertParameters ( double p ) : void
DoSamples ( Random rnd, double p ) : IEnumerable

Generates a sample sequence from the Bernoulli distribution.

SetParameters ( double p ) : void

Method Details

Bernoulli() public method

public Bernoulli ( double p = 0.0, Func randomFactory = null ) : System
p double
randomFactory Func
return System

CumulativeDistribution() public method

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

Probability() public method

분포의 확률
public Probability ( int k ) : double
k int
return double

ProbabilityLn() public method

분포의 Log 확률
public ProbabilityLn ( int k ) : double
k int
return double

Sample() public method

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

Sample() public method

Samples a Bernoulli distributed random variable.
public Sample ( Random rnd, double p ) : int
rnd System.Random The random number generator to use.
p double The probability of generating a 1.
return int

Samples() public method

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

Samples() public method

Samples a sequence of Bernoulli distributed random variables.
public Samples ( Random rnd, double p ) : IEnumerable
rnd System.Random The random number generator to use.
p double The probability of generating a 1.
return IEnumerable

ToString() public method

public ToString ( ) : string
return string