BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Member Functions | |
AttLimits () | |
bool | isFixed () const |
bool | isLimited () const |
bool | isUpperLimited () const |
bool | isLowerLimited () const |
bool | isLimitless () const |
double | lowerLimit () const |
double | upperLimit () const |
void | setFixed (bool isFixed) |
bool | operator== (const AttLimits &other) const |
bool | operator!= (const AttLimits &other) const |
std::string | toString () const |
Static Public Member Functions | |
static AttLimits | limitless () |
static AttLimits | lowerLimited (double bound_value) |
static AttLimits | positive () |
static AttLimits | nonnegative () |
static AttLimits | upperLimited (double bound_value) |
static AttLimits | limited (double left_bound_value, double right_bound_value) |
static AttLimits | fixed () |
Private Member Functions | |
AttLimits (const RealLimits &limits, const Attributes &fixedAttr) | |
Private Attributes | |
RealLimits | m_limits |
Attributes | m_att_fixed |
Friends | |
std::ostream & | operator<< (std::ostream &ostr, const AttLimits &m) |
Attributes and limits of a fit parameter, and coupling between these properties.
Definition at line 25 of file AttLimits.h.
AttLimits::AttLimits | ( | ) |
Definition at line 19 of file AttLimits.cpp.
Referenced by fixed(), limited(), limitless(), lowerLimited(), nonnegative(), positive(), and upperLimited().
|
private |
Definition at line 21 of file AttLimits.cpp.
|
static |
Definition at line 26 of file AttLimits.cpp.
References AttLimits().
|
static |
Definition at line 31 of file AttLimits.cpp.
References AttLimits(), Attributes::free(), and RealLimits::lowerLimited().
|
static |
Definition at line 36 of file AttLimits.cpp.
References AttLimits(), Attributes::free(), and RealLimits::positive().
|
static |
Definition at line 41 of file AttLimits.cpp.
References AttLimits(), Attributes::free(), and RealLimits::nonnegative().
|
static |
Definition at line 46 of file AttLimits.cpp.
References AttLimits(), Attributes::free(), and RealLimits::upperLimited().
|
static |
Definition at line 51 of file AttLimits.cpp.
References AttLimits(), Attributes::free(), and RealLimits::limited().
|
static |
Definition at line 56 of file AttLimits.cpp.
References AttLimits(), Attributes::fixed(), and RealLimits::limitless().
bool AttLimits::isFixed | ( | ) | const |
Definition at line 61 of file AttLimits.cpp.
References Attributes::isFixed(), and m_att_fixed.
Referenced by setFixed(), RootMinimizerAdapter::setParameter(), GeneticMinimizer::setParameter(), and toString().
bool AttLimits::isLimited | ( | ) | const |
Definition at line 66 of file AttLimits.cpp.
References RealLimits::hasLowerAndUpperLimits(), Attributes::isFree(), m_att_fixed, and m_limits.
Referenced by RootMinimizerAdapter::setParameter(), GeneticMinimizer::setParameter(), and toString().
bool AttLimits::isUpperLimited | ( | ) | const |
Definition at line 71 of file AttLimits.cpp.
References RealLimits::hasLowerLimit(), RealLimits::hasUpperLimit(), Attributes::isFree(), m_att_fixed, and m_limits.
Referenced by RootMinimizerAdapter::setParameter(), and toString().
bool AttLimits::isLowerLimited | ( | ) | const |
Definition at line 76 of file AttLimits.cpp.
References RealLimits::hasLowerLimit(), RealLimits::hasUpperLimit(), Attributes::isFree(), m_att_fixed, and m_limits.
Referenced by RootMinimizerAdapter::setParameter(), and toString().
bool AttLimits::isLimitless | ( | ) | const |
Definition at line 81 of file AttLimits.cpp.
References RealLimits::hasLowerLimit(), RealLimits::hasUpperLimit(), Attributes::isFree(), m_att_fixed, and m_limits.
Referenced by RootMinimizerAdapter::setParameter(), and toString().
double AttLimits::lowerLimit | ( | ) | const |
Definition at line 86 of file AttLimits.cpp.
References RealLimits::lowerLimit(), and m_limits.
Referenced by RootMinimizerAdapter::setParameter(), and toString().
double AttLimits::upperLimit | ( | ) | const |
Definition at line 91 of file AttLimits.cpp.
References m_limits, and RealLimits::upperLimit().
Referenced by RootMinimizerAdapter::setParameter(), and toString().
void AttLimits::setFixed | ( | bool | isFixed | ) |
Definition at line 96 of file AttLimits.cpp.
References isFixed(), m_att_fixed, m_limits, RealLimits::removeLimits(), and Attributes::setFixed().
bool AttLimits::operator== | ( | const AttLimits & | other | ) | const |
Definition at line 102 of file AttLimits.cpp.
References m_att_fixed, and m_limits.
bool AttLimits::operator!= | ( | const AttLimits & | other | ) | const |
Definition at line 107 of file AttLimits.cpp.
std::string AttLimits::toString | ( | ) | const |
Definition at line 112 of file AttLimits.cpp.
References isFixed(), isLimited(), isLimitless(), isLowerLimited(), isUpperLimited(), lowerLimit(), StringUtils::scientific(), and upperLimit().
Referenced by GeneticMinimizer::setParameter().
|
friend |
Definition at line 54 of file AttLimits.h.
|
private |
Definition at line 63 of file AttLimits.h.
Referenced by isLimited(), isLimitless(), isLowerLimited(), isUpperLimited(), lowerLimit(), operator==(), setFixed(), and upperLimit().
|
private |
Definition at line 64 of file AttLimits.h.
Referenced by isFixed(), isLimited(), isLimitless(), isLowerLimited(), isUpperLimited(), operator==(), and setFixed().