C# Class NSoft.NFramework.Numerics.Distributions.Continuous.Chi

This class implements functionality for the Chi distribution.
This distribution is a continuous probability distribution.
The distribution usually arises when a k-dimensional vector's orthogonal components are independent and each follow a standard normal distribution. The length of the vector will then have a chi distribution.
Wikipedia - Chi 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: IContinuousDistribution
Datei anzeigen Open project: debop/NFramework

Public Methods

Method Description
Chi ( double dof ) : System
Chi ( double dof, Func randomFactory ) : System
CumulativeDistribution ( double x ) : double

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

Density ( double x ) : double

분포의 확률 밀도

DensityLn ( double x ) : double

분포의 로그 확률 밀도

Sample ( ) : double

분포의 무작위 값을 제공합니다.

Sample ( Random rnd, double dof ) : double

Chi 분포의 무작위 값을 반환합니다.

Samples ( ) : IEnumerable

현 분포의 무작위 값을 열거합니다.

Samples ( Random rnd, double dof ) : IEnumerable

Chi 분포의 무작위 값을 열거합니다.

ToString ( ) : string

Private Methods

Method Description
AssertParameters ( double dof ) : void
DoSample ( Random rnd, double dof ) : double
SetParameters ( double dof ) : void

Method Details

Chi() public method

public Chi ( double dof ) : System
dof double
return System

Chi() public method

public Chi ( double dof, Func randomFactory ) : System
dof 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

Density() public method

분포의 확률 밀도
public Density ( double x ) : double
x double
return double

DensityLn() public method

분포의 로그 확률 밀도
public DensityLn ( double x ) : double
x double
return double

Sample() public method

분포의 무작위 값을 제공합니다.
public Sample ( ) : double
return double

Sample() public static method

Chi 분포의 무작위 값을 반환합니다.
public static Sample ( Random rnd, double dof ) : double
rnd System.Random
dof double
return double

Samples() public method

현 분포의 무작위 값을 열거합니다.
public Samples ( ) : IEnumerable
return IEnumerable

Samples() public static method

Chi 분포의 무작위 값을 열거합니다.
public static Samples ( Random rnd, double dof ) : IEnumerable
rnd System.Random
dof double
return IEnumerable

ToString() public method

public ToString ( ) : string
return string