D:\VC\Cpp\CppSln\GS.Math\GS.Math01
NamespaceS
1. HelloWorld - begin
----------------------------------------------------------------------------------------------------
2. Stewbond namespace
http://cplusplus.com/forum/beginner/62864/
// Returns the erf() of a value (not super precice, but ok)
double erf(double x)
// Returns the probability of x, given the distribution described by mu and sigma.
double pdf(double x, double mu, double sigma)
// Returns the probability of [-inf,x] of a gaussian distribution
double cdf(double x, double mu, double sigma)
// Returns the integral from -inf to x of any function that accepts x and 2 other parameters
double cdf_func(double x, double mu, double sigma, double(*ptr_pdf)(double, double, double))
// function which will approximate an integral of f(x) between a and b:
double integral(double a, double b, double(*f)(double))
class NormalDistribution
Stewbond::NormalDistribution(double _mu, double _sigma) : mu(_mu), sigma(_sigma)
inline double Stewbond::NormalDistribution::pdf(double x) const
double Stewbond::NormalDistribution::cdf(double x) const
-----------------------------------------------------------------------------------------------------------------
3. Horner Namespace
1. Horner functions. Poly 10 degree
Armstrong norm_cdv, norm_cdf_inverse
double norm_cdf(double x)
double norm_cdf_inverse(double x)
MathLib-Test1 Google Test OK
UnitTest_MathLib std::cout does not work
Комментариев нет:
Отправить комментарий