This example shows how to menage priors
try {
double xmin = -10., xmax = 10.;
double mean = -1., sigma = 0.1;
for (int i=0; i<100; ++i) {
double value = priorDistribution.sample();
std::cout << i << " " << value << " " << priorDistribution(value) << std::endl;
}
}
return 0;
}
int main()
main function to create the logo of the CosmoBolognaLib
The class PriorDistribution.
const char * what() const noexcept override
the error description
The class PriorDistribution.
@ _Gaussian_
Gaussian function.