Mantid
|
Store information about a fitting parameter such as its value if it is constrained or tied. More...
#include <FitParameter.h>
Public Member Functions | |
FitParameter () | |
Constructor. More... | |
std::string | getConstraint () const |
get constraint More... | |
const std::string & | getConstraintPenaltyFactor () const |
get penalty factor More... | |
const std::string & | getFormula () const |
get formula More... | |
const std::string & | getFormulaUnit () const |
get formula unit, and Empty string is no unit has been specified More... | |
const std::string & | getFunction () const |
get function More... | |
const Kernel::Interpolation & | getLookUpTable () const |
get look up table More... | |
const std::string & | getName () const |
get name More... | |
const std::string & | getResultUnit () const |
get result formula unit, and Empty string is no unit has been specified More... | |
const std::string & | getTie () const |
get tie More... | |
double | getValue () const |
get paramter value More... | |
double | getValue (const double &at) const |
get paramter value More... | |
void | printSelf (std::ostream &os) const |
Prints object to stream. More... | |
void | setConstraintMax (const std::string &constraintMax) |
set constraint max More... | |
void | setConstraintMin (const std::string &constraintMin) |
set constraint min More... | |
void | setConstraintPenaltyFactor (const std::string &constraintPenaltyFactor) |
set the constraint penalty More... | |
void | setFormula (const std::string &formula) |
set formula More... | |
void | setFormulaUnit (const std::string &formulaUnit) |
set formula unit More... | |
void | setFunction (const std::string &function) |
set function More... | |
void | setLookUpTable (const Kernel::Interpolation &lookupTable) |
set look up table More... | |
void | setName (const std::string &name) |
set name More... | |
void | setResultUnit (const std::string &resultUnit) |
set result formula unit More... | |
void | setTie (const std::string &tie) |
set tie More... | |
void | setValue (double value) |
set parameter value More... | |
Private Attributes | |
std::string | m_constraintMax |
constraint max boundary More... | |
std::string | m_constraintMin |
constraint min boundary More... | |
std::string | m_constraintPenaltyFactor |
the penalty factor More... | |
std::string | m_formula |
the formula More... | |
std::string | m_formulaUnit |
the unit that the formula expects More... | |
std::string | m_function |
name of fitting function More... | |
Kernel::Interpolation | m_lookUpTable |
look up table More... | |
std::string | m_name |
name of parameter More... | |
std::string | m_resultUnit |
the result unit More... | |
std::string | m_tie |
tie of parameter More... | |
double | m_value |
value of parameter More... | |
Store information about a fitting parameter such as its value if it is constrained or tied.
Main purpose is to use this class as a type for storing information about a fitting parameter in the parameter map of the workspace.
Definition at line 26 of file FitParameter.h.
|
inline |
Constructor.
Definition at line 29 of file FitParameter.h.
std::string Mantid::Geometry::FitParameter::getConstraint | ( | ) | const |
get constraint
Get constraint string.
Definition at line 28 of file FitParameter.cpp.
References m_constraintMax, m_constraintMin, m_name, and m_value.
|
inline |
get penalty factor
Definition at line 44 of file FitParameter.h.
|
inline |
get formula
Definition at line 54 of file FitParameter.h.
Referenced by Mantid::Algorithms::NormaliseByDetector::processHistogram().
|
inline |
get formula unit, and Empty string is no unit has been specified
Definition at line 58 of file FitParameter.h.
|
inline |
get function
Definition at line 66 of file FitParameter.h.
Referenced by Mantid::DataHandling::SaveParameterFile::exec(), and Mantid::Algorithms::NormaliseByDetector::processHistogram().
|
inline |
get look up table
Definition at line 74 of file FitParameter.h.
|
inline |
get name
Definition at line 70 of file FitParameter.h.
Referenced by Mantid::Algorithms::NormaliseByDetector::processHistogram().
|
inline |
get result formula unit, and Empty string is no unit has been specified
Definition at line 62 of file FitParameter.h.
Referenced by Mantid::Algorithms::NormaliseByDetector::processHistogram().
|
inline |
get tie
Definition at line 38 of file FitParameter.h.
double Mantid::Geometry::FitParameter::getValue | ( | ) | const |
get paramter value
Get parameter value.
Definition at line 113 of file FitParameter.cpp.
References m_value.
double Mantid::Geometry::FitParameter::getValue | ( | const double & | at | ) | const |
get paramter value
Get parameter value.
The default parameter 'at' is ignored expect if the value of the parameter is determined from a look up table or a formula.
at | :: number to return the value at |
Definition at line 69 of file FitParameter.cpp.
References Mantid::Kernel::Interpolation::containData(), Mantid::Kernel::Logger::error(), Mantid::Geometry::g_log, m_formula, m_lookUpTable, m_value, and Mantid::Kernel::Interpolation::value().
void Mantid::Geometry::FitParameter::printSelf | ( | std::ostream & | os | ) | const |
Prints object to stream.
os | :: the Stream to output to |
Definition at line 119 of file FitParameter.cpp.
References m_constraintMax, m_constraintMin, m_constraintPenaltyFactor, m_formula, m_formulaUnit, m_function, m_lookUpTable, m_name, m_resultUnit, m_tie, and m_value.
Referenced by Mantid::Geometry::operator<<().
|
inline |
set constraint max
Definition at line 48 of file FitParameter.h.
Referenced by Mantid::Geometry::operator>>().
|
inline |
set constraint min
Definition at line 46 of file FitParameter.h.
Referenced by Mantid::Geometry::operator>>().
|
inline |
set the constraint penalty
Definition at line 50 of file FitParameter.h.
Referenced by Mantid::Geometry::operator>>().
|
inline |
set formula
Definition at line 56 of file FitParameter.h.
Referenced by Mantid::Geometry::operator>>().
|
inline |
set formula unit
Definition at line 60 of file FitParameter.h.
Referenced by Mantid::Geometry::operator>>().
|
inline |
set function
Definition at line 68 of file FitParameter.h.
Referenced by Mantid::Geometry::operator>>().
|
inline |
set look up table
Definition at line 76 of file FitParameter.h.
Referenced by Mantid::Geometry::operator>>().
|
inline |
set name
Definition at line 72 of file FitParameter.h.
Referenced by Mantid::Geometry::operator>>().
|
inline |
set result formula unit
Definition at line 64 of file FitParameter.h.
Referenced by Mantid::Geometry::operator>>().
|
inline |
|
inline |
set parameter value
Definition at line 36 of file FitParameter.h.
References m_value, and value.
Referenced by Mantid::Geometry::operator>>().
|
private |
constraint max boundary
Definition at line 87 of file FitParameter.h.
Referenced by getConstraint(), and printSelf().
|
private |
constraint min boundary
Definition at line 86 of file FitParameter.h.
Referenced by getConstraint(), and printSelf().
|
private |
|
private |
the formula
Definition at line 96 of file FitParameter.h.
Referenced by getValue(), and printSelf().
|
private |
the unit that the formula expects
Definition at line 97 of file FitParameter.h.
Referenced by printSelf().
|
private |
|
private |
look up table
Definition at line 94 of file FitParameter.h.
Referenced by getValue(), and printSelf().
|
private |
name of parameter
Definition at line 92 of file FitParameter.h.
Referenced by getConstraint(), and printSelf().
|
private |
|
private |
|
mutableprivate |
value of parameter
Definition at line 83 of file FitParameter.h.
Referenced by getConstraint(), getValue(), and printSelf().