double Gaussian (const double xx)
{
const double mean = 0.;
const double sigma = 1.;
return 1./(sigma*sqrt(2.*
cbl::par::pi))*exp(-pow(xx-mean, 2)/(2.*sigma*sigma));
}
try {
const double mean = 0.;
const double sigma = 1.;
const std::shared_ptr<void> pp;
const double lower_limit = -1.;
const double upper_limit = 1.;
const double prec = 1.e-5;
const int limit_size = 1000;
const int rule = 6;
std::function<double(
double)> GaussianL = [&] (
const double xx) {
return 1./(sigma*sqrt(2.*
cbl::par::pi))*exp(-pow(xx-mean, 2)/(2.*sigma*sigma)); };
}
return 0;
}
Useful generic functions.
int main()
main function to create the logo of the CosmoBolognaLib
const char * what() const noexcept override
the error description
static const double pi
: the ratio of a circle's circumference to its diameter
double GSL_integrate_qag(gsl_function Func, const double a, const double b, const double rel_err=1.e-3, const double abs_err=0, const int limit_size=1000, const int rule=6)
integral, computed using the GSL qag method