21 , m_direction(direction)
22 , m_distance(mean_distance)
26 throw std::runtime_error(
27 "InterferenceTwin::validateParameters: mean distance, standard deviation and "
28 "length of direction vector should be positive");
Defines class InterferenceTwin.
Defines class RealLimits.
Abstract base class of interference functions.
Interference function for two particles at a mean distance and given standard deviation from each oth...
double iff_without_dw(R3 q) const override
Calculates the structure factor without Debye-Waller factor.
InterferenceTwin * clone() const override
double meanDistance() const
InterferenceTwin(const R3 &direction, double mean_distance, double std_dev)
void check(const std::string &name, double value) const
Throws if value is outside limits. Parameter 'name' is for exception message.
static RealLimits nonnegative()
Creates an object which can have only positive values with 0. included.