BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Various mathematical functions. More...
Namespaces | |
Bessel | |
Real and complex Bessel functions. | |
internal | |
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) |
template<size_t N, typename Indices = std::make_index_sequence<N>> | |
constexpr std::array< double, N > | generateReciprocalFactorialArray () |
Returns a compile-time generated std::array of reciprocal factorials. More... | |
double | IntegratedGaussian (double x, double average, double std_dev) |
double | Laue (const double x, size_t N) |
Real Laue function: ![]() | |
complex_t | sinc (const complex_t z) |
Complex sinc function: ![]() | |
double | sinc (double x) |
sinc function: ![]() | |
double | StandardNormal (double x) |
complex_t | tanhc (const complex_t z) |
Complex tanhc function: ![]() | |
Various mathematical functions.
double Math::cot | ( | double | x | ) |
cotangent function:
Definition at line 48 of file Functions.cpp.
References M_PI_2.
Referenced by FormFactorAnisoPyramid::onChange(), FormFactorCone::onChange(), FormFactorCone6::onChange(), FormFactorCuboctahedron::onChange(), FormFactorPyramid::onChange(), FormFactorTetrahedron::onChange(), FormFactorAnisoPyramid::sliceFormFactor(), FormFactorCone6::sliceFormFactor(), FormFactorCuboctahedron::sliceFormFactor(), FormFactorPyramid::sliceFormFactor(), and FormFactorTetrahedron::sliceFormFactor().
double Math::erf | ( | double | arg | ) |
Error function of real-valued argument.
Definition at line 87 of file Functions.cpp.
Referenced by FootprintGauss::calculate().
double Math::Gaussian | ( | double | x, |
double | average, | ||
double | std_dev | ||
) |
Definition at line 36 of file Functions.cpp.
References StandardNormal().
double Math::GeneratePoissonRandom | ( | double | average | ) |
Definition at line 123 of file Functions.cpp.
Referenced by PoissonNoiseBackground::addBackground().
|
constexpr |
Returns a compile-time generated std::array of reciprocal factorials.
Definition at line 49 of file Precomputed.h.
double Math::IntegratedGaussian | ( | double | x, |
double | average, | ||
double | std_dev | ||
) |
Definition at line 41 of file Functions.cpp.
Referenced by ResolutionFunction2DGaussian::evaluateCDF().
double Math::Laue | ( | const double | x, |
size_t | N | ||
) |
Real Laue function: .
Definition at line 76 of file Functions.cpp.
Referenced by InterferenceFunction2DSuperLattice::iff_without_dw(), InterferenceFunctionFinite3DLattice::iff_without_dw(), and InterferenceFunctionFinite2DLattice::interferenceForXi().
double Math::sinc | ( | double | x | ) |
sinc function:
Definition at line 53 of file Functions.cpp.
References M_PI.
Referenced by PolyhedralFace::edge_sum_ff(), FTDecayFunction1DTriangle::evaluate(), FTDistribution1DGate::evaluate(), FTDistribution1DTriangle::evaluate(), FTDistribution1DCosine::evaluate(), Prism::evaluate_for_q(), FormFactorBox::evaluate_for_q(), FormFactorCylinder::evaluate_for_q(), FormFactorEllipsoidalCylinder::evaluate_for_q(), FormFactorLongBoxGauss::evaluate_for_q(), FormFactorLongBoxLorentz::evaluate_for_q(), ripples::factor_x_box(), ripples::profile_yz_bar(), ripples::profile_yz_cosine(), and ripples::profile_yz_triangular().
double Math::StandardNormal | ( | double | x | ) |
Complex tanhc function: .
Definition at line 69 of file Functions.cpp.
Referenced by SpecularMagneticTanhStrategy::computeRoughnessMatrix(), and SpecularScalarTanhStrategy::transition().