14namespace CurveFitting {
15namespace MSVesuvioHelper {
40 Simulation(
const size_t order,
const size_t ntimes);
42 std::vector<std::vector<double>>
counts;
48 :
sim(order, ntimes),
errors(order,
std::vector<double>(ntimes)) {}
52 std::vector<std::vector<double>>
errors;
double flat()
Returns a flat random number between 0.0 & 1.0.
double gaussian(const double mean, const double sigma)
Returns a random number distributed by a normal distribution.
double finalEnergyUranium(const double randv)
Generate the final energy of a neutron for uranium foil analyser at 293K with number density of 1....
double finalEnergyAuYap(const double randv)
Generate the final energy of a neutron for gold foil analyser at 293K with number density of 7....
double finalEnergyAuDD(const double randv)
Generate the final energy of a neutron for gold foil analyser at 293K in double-difference mode:
Helper class which provides the Collimation Length for SANS instruments.
Simulation & newSimulation(const size_t order, const size_t ntimes)
SimulationWithErrors average() const
std::vector< Simulation > results
SimulationWithErrors(const size_t order, const size_t ntimes)
std::vector< std::vector< double > > errors
void normalise()
Normalise the counts so that the integral over the single-scatter events is 1.
std::vector< std::vector< double > > counts