C# Класс Accord.Math.Special

Set of special mathematic functions.
References: Cephes Math Library, http://www.netlib.org/cephes/ John D. Cook, http://www.johndcook.com/
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Acosec ( double x ) : double

Inverse cosecant.

BSpline ( int n, double x ) : double

Computes the Basic Spline of order n

Binomial ( double n, double k ) : double

Computes the binomial coefficients C(n,k).

Binomial ( int n, int k ) : double

Computes the binomial coefficients C(n,k).

Epslon ( double x ) : double

Estimates unit round-off in quantities of size x.

This is a port of the epslon function from EISPACK.

Erf ( double x ) : double

Error function of the specified value.

Erfc ( double value ) : double

Complementary error function of the specified value.

http://mathworld.wolfram.com/Erfc.html

Factorial ( double n ) : double

Returns the extended factorial definition of a real number.

Factorial ( int n ) : double

Computes the factorial of a number (n!)

Ierf ( double y ) : double

Inverse error function (Erf(double).

Ierfc ( double y ) : double

Inverse complemented error function (Erfc(double).

LogBinomial ( double n, double k ) : double

Computes the log binomial Coefficients Log[C(n,k)].

LogBinomial ( int n, int k ) : double

Computes the log binomial Coefficients Log[C(n,k)].

LogFactorial ( double n ) : double

Returns the log factorial of a number (ln(n!))

LogFactorial ( int n ) : double

Returns the log factorial of a number (ln(n!))

P1evl ( double x, double coef, int n ) : double

Evaluates polynomial of degree N with assumption that coef[N] = 1.0

Polevl ( double x, double coef, int n ) : double

Evaluates polynomial of degree N

Приватные методы

Метод Описание
Acosech ( double x ) : double
Acosh ( double x ) : double
Acotan ( double x ) : double
Acotanh ( double x ) : double
Asec ( double x ) : double
Asech ( double x ) : double
Asinh ( double x ) : double
Atanh ( double x ) : double
Cosec ( double x ) : double
Cosech ( double x ) : double
Cotan ( double x ) : double
Cotanh ( double x ) : double
Expm1 ( double x ) : double
Log1m ( double x ) : double
Log1p ( double x ) : double
Log1pexp ( double x ) : double
LogDiff ( double lna, double lnc ) : double
LogSum ( double lna, double lnc ) : double
LogSum ( float lna, float lnc ) : double
LogSumExp ( this array ) : double
Sec ( double x ) : double
Sech ( double x ) : double
Sign ( double a, double b ) : double
Softmax ( double input ) : double[]
Softmax ( double input, double result ) : double[]

Описание методов

Acosec() публичный статический метод

Inverse cosecant.
public static Acosec ( double x ) : double
x double
Результат double

BSpline() публичный статический метод

Computes the Basic Spline of order n
public static BSpline ( int n, double x ) : double
n int
x double
Результат double

Binomial() публичный статический метод

Computes the binomial coefficients C(n,k).
public static Binomial ( double n, double k ) : double
n double
k double
Результат double

Binomial() публичный статический метод

Computes the binomial coefficients C(n,k).
public static Binomial ( int n, int k ) : double
n int
k int
Результат double

Epslon() публичный статический метод

Estimates unit round-off in quantities of size x.
This is a port of the epslon function from EISPACK.
public static Epslon ( double x ) : double
x double
Результат double

Erf() публичный статический метод

Error function of the specified value.
public static Erf ( double x ) : double
x double
Результат double

Erfc() публичный статический метод

Complementary error function of the specified value.
http://mathworld.wolfram.com/Erfc.html
public static Erfc ( double value ) : double
value double
Результат double

Factorial() публичный статический метод

Returns the extended factorial definition of a real number.
public static Factorial ( double n ) : double
n double
Результат double

Factorial() публичный статический метод

Computes the factorial of a number (n!)
public static Factorial ( int n ) : double
n int
Результат double

Ierf() публичный статический метод

Inverse error function (Erf(double).
public static Ierf ( double y ) : double
y double
Результат double

Ierfc() публичный статический метод

Inverse complemented error function (Erfc(double).
public static Ierfc ( double y ) : double
y double
Результат double

LogBinomial() публичный статический метод

Computes the log binomial Coefficients Log[C(n,k)].
public static LogBinomial ( double n, double k ) : double
n double
k double
Результат double

LogBinomial() публичный статический метод

Computes the log binomial Coefficients Log[C(n,k)].
public static LogBinomial ( int n, int k ) : double
n int
k int
Результат double

LogFactorial() публичный статический метод

Returns the log factorial of a number (ln(n!))
public static LogFactorial ( double n ) : double
n double
Результат double

LogFactorial() публичный статический метод

Returns the log factorial of a number (ln(n!))
public static LogFactorial ( int n ) : double
n int
Результат double

P1evl() публичный статический метод

Evaluates polynomial of degree N with assumption that coef[N] = 1.0
public static P1evl ( double x, double coef, int n ) : double
x double
coef double
n int
Результат double

Polevl() публичный статический метод

Evaluates polynomial of degree N
public static Polevl ( double x, double coef, int n ) : double
x double
coef double
n int
Результат double