alimath.h

来自「信息隐藏中用于数字隐写的常用算法:LSB替换LSB匹配,包括随机的和排序的,以及」· C头文件 代码 · 共 25 行

H
25
字号
#ifndef ALIMATH_H
#define ALIMATH_H

#define Float_t  double
#define Int_t    int
#define Double_t double
// AliMath M;
// Float_t chi2=20  ;          // The chi-squared value
// Int_t ndf=12;               // The number of degrees of freedom
// Float_t p=M.Prob(chi2,ndf); // The probability that at least a Chi-squared
//                             // value of chi2 will be observed, even for a
//                             // correct model


Float_t Gamma(Float_t z);             // Standard gamma function Gamma(z)
Float_t Gamma(Float_t a,Float_t x);   // Incomplete gamma function P(a,x)
Float_t LnGamma(Float_t z);           // Compute ln[Gamma(z)]
Float_t Erf(Float_t x);               // Error function erf(x)
Float_t Erfc(Float_t x);              // Complementary error function erfc(x)
Float_t ChiProb(Float_t chi2,Int_t ndf); // Compute Chi-squared probability

Float_t GamSer(Float_t a,Float_t x);  // Compute P(a,x) via serial representation
Float_t GamCf(Float_t a,Float_t x);   // Compute P(a,x) via continued fractions

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?