?? specfun.h
字號(hào):
//// This file is a part of the Bayes Blocks library//// Copyright (C) 2001-2006 Markus Harva, Antti Honkela, Alexander// Ilin, Tapani Raiko, Harri Valpola and Tomas 謘tman.//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2, or (at your option)// any later version.//// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the// GNU General Public License (included in file License.txt in the// program package) for more details.//// $Id: SpecFun.h 5 2006-10-26 09:44:54Z ah $#ifndef SPECFUN_H#define SPECFUN_Hclass ValueException { };inline double Sqr(double x) { return x * x;}#ifndef BAD_MATHLIBinline double Erf(double x) { return erf(x);}inline double Erfc(double x) { return erfc(x);}inline double LogGamma(double x) { return lgamma(x);}#else#include <float.h>double Erf(double x);double Erfc(double x);double LogGamma(double x);inline int finite(double x) { return _finite(x);}#endifinline double Erfcx(double x) { return exp(x*x) * Erfc(x);}double NormPdf(double x, double m, double v);double DiGamma(double x);#endif
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -