BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Attributes and limits of a fit parameter, and coupling between these properties. More...
Public Member Functions | |
AttLimits () | |
bool | isFixed () const |
bool | isLimited () const |
bool | isLimitless () const |
bool | isLowerLimited () const |
bool | isUpperLimited () const |
double | lowerLimit () const |
bool | operator!= (const AttLimits &other) const |
bool | operator== (const AttLimits &other) const |
void | setFixed (bool isFixed) |
std::string | toString () const |
double | upperLimit () const |
Static Public Member Functions | |
static AttLimits | fixed () |
static AttLimits | limited (double left_bound_value, double right_bound_value) |
static AttLimits | limitless () |
static AttLimits | lowerLimited (double bound_value) |
static AttLimits | nonnegative () |
static AttLimits | positive () |
static AttLimits | upperLimited (double bound_value) |
Private Member Functions | |
AttLimits (const RealLimits &limits, const Attributes &fixedAttr) | |
Private Attributes | |
Attributes | m_att_fixed |
RealLimits | m_limits |
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 56 of file AttLimits.cpp.
References AttLimits(), Attributes::fixed(), and RealLimits::limitless().
Referenced by FitParameterItem::attLimits().
bool AttLimits::isFixed | ( | ) | const |
Definition at line 61 of file AttLimits.cpp.
References Attributes::isFixed(), and m_att_fixed.
Referenced by setFixed(), MinimizerAdapter::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 MinimizerAdapter::setParameter(), GeneticMinimizer::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 MinimizerAdapter::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 MinimizerAdapter::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 MinimizerAdapter::setParameter(), and toString().
|
static |
Definition at line 51 of file AttLimits.cpp.
References AttLimits(), Attributes::free(), and RealLimits::limited().
Referenced by FitParameterItem::attLimits().
|
static |
Definition at line 26 of file AttLimits.cpp.
References AttLimits().
Referenced by FitParameterItem::attLimits().
double AttLimits::lowerLimit | ( | ) | const |
Definition at line 86 of file AttLimits.cpp.
References RealLimits::lowerLimit(), and m_limits.
Referenced by MinimizerAdapter::setParameter(), and toString().
|
static |
Definition at line 31 of file AttLimits.cpp.
References AttLimits(), Attributes::free(), and RealLimits::lowerLimited().
Referenced by FitParameterItem::attLimits().
|
static |
Definition at line 41 of file AttLimits.cpp.
References AttLimits(), Attributes::free(), and RealLimits::nonnegative().
bool AttLimits::operator!= | ( | const AttLimits & | other | ) | const |
Definition at line 107 of file AttLimits.cpp.
bool AttLimits::operator== | ( | const AttLimits & | other | ) | const |
Definition at line 102 of file AttLimits.cpp.
References m_att_fixed, and m_limits.
|
static |
Definition at line 36 of file AttLimits.cpp.
References AttLimits(), Attributes::free(), and RealLimits::positive().
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().
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().
double AttLimits::upperLimit | ( | ) | const |
Definition at line 91 of file AttLimits.cpp.
References m_limits, and RealLimits::upperLimit().
Referenced by MinimizerAdapter::setParameter(), and toString().
|
static |
Definition at line 46 of file AttLimits.cpp.
References AttLimits(), Attributes::free(), and RealLimits::upperLimited().
Referenced by FitParameterItem::attLimits().
|
friend |
Definition at line 53 of file AttLimits.h.
|
private |
Definition at line 63 of file AttLimits.h.
Referenced by isFixed(), isLimited(), isLimitless(), isLowerLimited(), isUpperLimited(), operator==(), and setFixed().
|
private |
Definition at line 62 of file AttLimits.h.
Referenced by isLimited(), isLimitless(), isLowerLimited(), isUpperLimited(), lowerLimit(), operator==(), setFixed(), and upperLimit().