C# 클래스 LitDev.LDStatistics

파일 보기 프로젝트 열기: litdev1/LitDev

공개 메소드들

메소드 설명
Differentiate ( Primitive array ) : Primitive

Calculate the derivative of a 1D data array.

DistBinomial ( Primitive n, Primitive p ) : Primitive

Create an array with a Binomial distribution. This is like the probablity of getting k heads from 20 (n) coin tosses, with a probablity for each toss getting a heads of 0.5 (p).

DistNormal ( Primitive distMean, Primitive distSTD, Primitive size ) : Primitive

Create an array with a Normal distribution.

DistTriangular ( Primitive rangeMin, Primitive rangeMax, Primitive size ) : Primitive

Create an array with a Triangular distribution.

DistUniform ( Primitive rangeMin, Primitive rangeMax, Primitive size ) : Primitive

Create an array with a Uniform distribution.

Frequency ( Primitive array, Primitive bins, Primitive normalised ) : Primitive

Calculate a frequency distribution from array of data.

Integrate ( Primitive array ) : Primitive

Calculate the integral of a 1D data array.

InterpolateX ( Primitive array, Primitive y ) : Primitive

Interpolate a 1D data array to find the value of x(y). The values of y should be monotonically increasing with x.

InterpolateY ( Primitive array, Primitive x ) : Primitive

Interpolate a 1D data array to find the value of y(x). The values of x should be monotonically increasing.

SetArray ( Primitive array ) : Primitive

Set a 1D array of numbers to perform some statistics on. This command must be called before any statistics are calculated.

비공개 메소드들

메소드 설명
binomial ( int n, int k ) : double
factorial ( int n ) : double
formData ( string array ) : void
interpolateX ( double y ) : double
interpolateY ( double x ) : double
setData ( string array ) : void
setPoints ( string array ) : void

메소드 상세

Differentiate() 공개 정적인 메소드

Calculate the derivative of a 1D data array.
public static Differentiate ( Primitive array ) : Primitive
array Primitive The array to differentiate (array[x]=y).
리턴 Primitive

DistBinomial() 공개 정적인 메소드

Create an array with a Binomial distribution. This is like the probablity of getting k heads from 20 (n) coin tosses, with a probablity for each toss getting a heads of 0.5 (p).
public static DistBinomial ( Primitive n, Primitive p ) : Primitive
n Primitive The number of tries.
p Primitive The probablity of success for each try.
리턴 Primitive

DistNormal() 공개 정적인 메소드

Create an array with a Normal distribution.
public static DistNormal ( Primitive distMean, Primitive distSTD, Primitive size ) : Primitive
distMean Primitive The mean of the distribution.
distSTD Primitive The standard deviation of the distribution.
size Primitive The number of points.
리턴 Primitive

DistTriangular() 공개 정적인 메소드

Create an array with a Triangular distribution.
public static DistTriangular ( Primitive rangeMin, Primitive rangeMax, Primitive size ) : Primitive
rangeMin Primitive The minimum value.
rangeMax Primitive The maximum value.
size Primitive The number of points.
리턴 Primitive

DistUniform() 공개 정적인 메소드

Create an array with a Uniform distribution.
public static DistUniform ( Primitive rangeMin, Primitive rangeMax, Primitive size ) : Primitive
rangeMin Primitive The minimum value.
rangeMax Primitive The maximum value.
size Primitive The number of points.
리턴 Primitive

Frequency() 공개 정적인 메소드

Calculate a frequency distribution from array of data.
public static Frequency ( Primitive array, Primitive bins, Primitive normalised ) : Primitive
array Primitive The array to create the frequency distribution from.
bins Primitive The number of bins spanning the data.
normalised Primitive Is the frequency normalised to integrate to 1 ("True" or "False").
리턴 Primitive

Integrate() 공개 정적인 메소드

Calculate the integral of a 1D data array.
public static Integrate ( Primitive array ) : Primitive
array Primitive The array to integrate (array[x]=y).
리턴 Primitive

InterpolateX() 공개 정적인 메소드

Interpolate a 1D data array to find the value of x(y). The values of y should be monotonically increasing with x.
public static InterpolateX ( Primitive array, Primitive y ) : Primitive
array Primitive The array to interpolate (array[x]=y).
y Primitive The value of y (may be an array of y values).
리턴 Primitive

InterpolateY() 공개 정적인 메소드

Interpolate a 1D data array to find the value of y(x). The values of x should be monotonically increasing.
public static InterpolateY ( Primitive array, Primitive x ) : Primitive
array Primitive The array to interpolate (array[x]=y).
x Primitive The value of x (may be an array of x values).
리턴 Primitive

SetArray() 공개 정적인 메소드

Set a 1D array of numbers to perform some statistics on. This command must be called before any statistics are calculated.
public static SetArray ( Primitive array ) : Primitive
array Primitive /// The array to perform statistics on. ///
리턴 Primitive