BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
Various mathematical functions.
Namespace for new Math classes and functions. See the Math Libraries page for a detailed description.
Namespaces | |
Bessel | |
Real and complex Bessel functions. | |
Functions | |
double | cot (double x) |
cotangent function: ![]() | |
double | erf (double arg) |
Error function of real-valued argument. More... | |
double | Gaussian (double x, double average, double std_dev) |
double | GeneratePoissonRandom (double average) |
double | IntegratedGaussian (double x, double average, double std_dev) |
double | Laue (double x, size_t N) |
Real Laue function: ![]() | |
complex_t | sinc (complex_t z) |
Complex sinc function: ![]() | |
double | sinc (double x) |
sinc function: ![]() | |
double | StandardNormal (double x) |
complex_t | tanhc (complex_t z) |
Complex tanhc function: ![]() | |
double Math::cot | ( | double | x | ) |
cotangent function:
Definition at line 47 of file Functions.cpp.
References M_PI_2.
Referenced by Bipyramid4::Bipyramid4(), Cone::Cone(), Pyramid2::Pyramid2(), Pyramid3::Pyramid3(), Pyramid4::Pyramid4(), and Pyramid6::Pyramid6().
double Math::erf | ( | double | arg | ) |
Error function of real-valued argument.
Definition at line 88 of file Functions.cpp.
Referenced by FootprintGauss::calculate().
double Math::Gaussian | ( | double | x, |
double | average, | ||
double | std_dev | ||
) |
Definition at line 35 of file Functions.cpp.
References StandardNormal().
double Math::GeneratePoissonRandom | ( | double | average | ) |
double Math::IntegratedGaussian | ( | double | x, |
double | average, | ||
double | std_dev | ||
) |
Definition at line 40 of file Functions.cpp.
Referenced by ResolutionFunction2DGaussian::evaluateCDF().
double Math::Laue | ( | double | x, |
size_t | N | ||
) |
Real Laue function: .
Definition at line 77 of file Functions.cpp.
References N.
Referenced by InterferenceFinite3DLattice::iff_without_dw(), Interference2DSuperLattice::iff_without_dw(), and InterferenceFinite2DLattice::interferenceForXi().
complex_t Math::sinc | ( | complex_t | z | ) |
double Math::sinc | ( | double | x | ) |
sinc function:
Definition at line 52 of file Functions.cpp.
Referenced by Profile1DTriangle::decayFT(), ripples::factor_x_box(), Box::formfactor_at_bottom(), Cylinder::formfactor_at_bottom(), EllipsoidalCylinder::formfactor_at_bottom(), HorizontalCylinder::formfactor_at_bottom(), LongBoxGauss::formfactor_at_bottom(), LongBoxLorentz::formfactor_at_bottom(), ripples::profile_yz_bar(), ripples::profile_yz_cosine(), ripples::profile_yz_triangular(), Profile1DGate::standardizedFT(), Profile1DTriangle::standardizedFT(), and Profile1DCosine::standardizedFT().
double Math::StandardNormal | ( | double | x | ) |
complex_t Math::tanhc | ( | complex_t | z | ) |
Complex tanhc function: .
Definition at line 70 of file Functions.cpp.