ROOT
6.06/09
Reference Guide
|
API class for the user interaction with the parameters; serves as input to the minimizer as well as output from it; users can interact: Fix/release parameters, set values and errors, etc.
; parameters can be accessed via their Parameter number (determined internally by Minuit and followed the order how the parameters are created) or via their user-specified Name (10 character string). Minuit has also an internal parameter number which is used during the minimization (the fix parameter are skipped). The parameter number used in this class is the external one. The class ROOT::Minuit2::MnUserTransformation is used to keep the internal <-> external transformation
Definition at line 37 of file MnUserParameters.h.
Public Member Functions | |
MnUserParameters () | |
MnUserParameters (const std::vector< double > &, const std::vector< double > &) | |
~MnUserParameters () | |
MnUserParameters (const MnUserParameters &par) | |
MnUserParameters & | operator= (const MnUserParameters &par) |
const MnUserTransformation & | Trafo () const |
unsigned int | VariableParameters () const |
const std::vector< ROOT::Minuit2::MinuitParameter > & | Parameters () const |
access to parameters (row-wise) More... | |
std::vector< double > | Params () const |
access to parameters and errors in column-wise representation More... | |
std::vector< double > | Errors () const |
const MinuitParameter & | Parameter (unsigned int) const |
access to single Parameter More... | |
bool | Add (const std::string &, double, double) |
Add free Parameter Name, Value, Error. More... | |
bool | Add (const std::string &, double, double, double, double) |
Add limited Parameter Name, Value, Lower bound, Upper bound. More... | |
bool | Add (const std::string &, double) |
Add const Parameter Name, vale. More... | |
void | Fix (unsigned int) |
interaction via external number of Parameter More... | |
void | Release (unsigned int) |
void | RemoveLimits (unsigned int) |
void | SetValue (unsigned int, double) |
void | SetError (unsigned int, double) |
void | SetLimits (unsigned int, double, double) |
void | SetUpperLimit (unsigned int, double) |
void | SetLowerLimit (unsigned int, double) |
void | SetName (unsigned int, const std::string &) |
double | Value (unsigned int) const |
double | Error (unsigned int) const |
void | Fix (const std::string &) |
interaction via Name of Parameter More... | |
void | Release (const std::string &) |
void | SetValue (const std::string &, double) |
void | SetError (const std::string &, double) |
void | SetLimits (const std::string &, double, double) |
void | SetUpperLimit (const std::string &, double) |
void | SetLowerLimit (const std::string &, double) |
void | RemoveLimits (const std::string &) |
double | Value (const std::string &) const |
double | Error (const std::string &) const |
unsigned int | Index (const std::string &) const |
const std::string & | GetName (unsigned int) const |
const char * | Name (unsigned int) const |
const MnMachinePrecision & | Precision () const |
void | SetPrecision (double eps) |
Private Attributes | |
MnUserTransformation | fTransformation |
#include <Minuit2/MnUserParameters.h>
|
inline |
Definition at line 41 of file MnUserParameters.h.
ROOT::Minuit2::MnUserParameters::MnUserParameters | ( | const std::vector< double > & | par, |
const std::vector< double > & | err | ||
) |
Definition at line 17 of file MnUserParameters.cxx.
|
inline |
Definition at line 45 of file MnUserParameters.h.
|
inline |
Definition at line 47 of file MnUserParameters.h.
Add free Parameter Name, Value, Error.
Definition at line 41 of file MnUserParameters.cxx.
Referenced by ROOT::Minuit2::MnUserParameterState::Add(), and main().
bool ROOT::Minuit2::MnUserParameters::Add | ( | const std::string & | name, |
double | val, | ||
double | err, | ||
double | low, | ||
double | up | ||
) |
Add limited Parameter Name, Value, Lower bound, Upper bound.
Definition at line 47 of file MnUserParameters.cxx.
bool ROOT::Minuit2::MnUserParameters::Add | ( | const std::string & | name, |
double | val | ||
) |
Add const Parameter Name, vale.
Definition at line 53 of file MnUserParameters.cxx.
double ROOT::Minuit2::MnUserParameters::Error | ( | unsigned int | n | ) | const |
Definition at line 110 of file MnUserParameters.cxx.
Referenced by Error(), ROOT::Minuit2::MnUserParameterState::Error(), and ROOT::Minuit2::MnParameterScan::operator()().
double ROOT::Minuit2::MnUserParameters::Error | ( | const std::string & | name | ) | const |
Definition at line 162 of file MnUserParameters.cxx.
std::vector< double > ROOT::Minuit2::MnUserParameters::Errors | ( | ) | const |
Definition at line 31 of file MnUserParameters.cxx.
Referenced by ROOT::Minuit2::MnUserParameterState::Errors().
void ROOT::Minuit2::MnUserParameters::Fix | ( | unsigned int | n | ) |
interaction via external number of Parameter
Definition at line 59 of file MnUserParameters.cxx.
Referenced by Fix(), and ROOT::Minuit2::MnUserParameterState::Fix().
void ROOT::Minuit2::MnUserParameters::Fix | ( | const std::string & | name | ) |
interaction via Name of Parameter
Definition at line 117 of file MnUserParameters.cxx.
const std::string & ROOT::Minuit2::MnUserParameters::GetName | ( | unsigned int | n | ) | const |
Definition at line 172 of file MnUserParameters.cxx.
Referenced by ROOT::Minuit2::MnUserParameterState::GetName().
unsigned int ROOT::Minuit2::MnUserParameters::Index | ( | const std::string & | name | ) | const |
Definition at line 167 of file MnUserParameters.cxx.
Referenced by Error(), Fix(), ROOT::Minuit2::MnUserParameterState::Index(), Release(), RemoveLimits(), SetError(), SetLimits(), SetLowerLimit(), SetUpperLimit(), SetValue(), and Value().
const char * ROOT::Minuit2::MnUserParameters::Name | ( | unsigned int | n | ) | const |
Definition at line 176 of file MnUserParameters.cxx.
Referenced by ROOT::Minuit2::MnUserParameterState::Name().
|
inline |
Definition at line 50 of file MnUserParameters.h.
const MinuitParameter & ROOT::Minuit2::MnUserParameters::Parameter | ( | unsigned int | n | ) | const |
access to single Parameter
Definition at line 36 of file MnUserParameters.cxx.
Referenced by ROOT::Minuit2::MnParameterScan::operator()(), and ROOT::Minuit2::MnUserParameterState::Parameter().
const std::vector< MinuitParameter > & ROOT::Minuit2::MnUserParameters::Parameters | ( | ) | const |
access to parameters (row-wise)
Definition at line 21 of file MnUserParameters.cxx.
Referenced by ROOT::Minuit2::MnUserParameterState::MinuitParameters(), and ROOT::Minuit2::operator<<().
std::vector< double > ROOT::Minuit2::MnUserParameters::Params | ( | ) | const |
access to parameters and errors in column-wise representation
Definition at line 26 of file MnUserParameters.cxx.
Referenced by ROOT::Minuit2::MnParameterScan::operator()(), and ROOT::Minuit2::MnUserParameterState::Params().
const MnMachinePrecision & ROOT::Minuit2::MnUserParameters::Precision | ( | ) | const |
Definition at line 181 of file MnUserParameters.cxx.
Referenced by ROOT::Minuit2::operator<<(), and ROOT::Minuit2::MnUserParameterState::Precision().
void ROOT::Minuit2::MnUserParameters::Release | ( | unsigned int | n | ) |
Definition at line 64 of file MnUserParameters.cxx.
Referenced by Release(), and ROOT::Minuit2::MnUserParameterState::Release().
void ROOT::Minuit2::MnUserParameters::Release | ( | const std::string & | name | ) |
Definition at line 122 of file MnUserParameters.cxx.
void ROOT::Minuit2::MnUserParameters::RemoveLimits | ( | unsigned int | n | ) |
Definition at line 69 of file MnUserParameters.cxx.
Referenced by RemoveLimits(), and ROOT::Minuit2::MnUserParameterState::RemoveLimits().
void ROOT::Minuit2::MnUserParameters::RemoveLimits | ( | const std::string & | name | ) |
Definition at line 152 of file MnUserParameters.cxx.
Definition at line 79 of file MnUserParameters.cxx.
Referenced by SetError(), and ROOT::Minuit2::MnUserParameterState::SetError().
Definition at line 132 of file MnUserParameters.cxx.
Definition at line 84 of file MnUserParameters.cxx.
Referenced by main(), SetLimits(), and ROOT::Minuit2::MnUserParameterState::SetLimits().
Definition at line 137 of file MnUserParameters.cxx.
Definition at line 94 of file MnUserParameters.cxx.
Referenced by main(), and ROOT::Minuit2::MnUserParameterState::SetLowerLimit().
Definition at line 147 of file MnUserParameters.cxx.
void ROOT::Minuit2::MnUserParameters::SetName | ( | unsigned int | n, |
const std::string & | name | ||
) |
Definition at line 99 of file MnUserParameters.cxx.
Referenced by ROOT::Minuit2::MnUserParameterState::SetName().
Definition at line 113 of file MnUserParameters.h.
Referenced by ROOT::Minuit2::MnUserParameterState::SetPrecision().
Definition at line 89 of file MnUserParameters.cxx.
Referenced by main(), and ROOT::Minuit2::MnUserParameterState::SetUpperLimit().
Definition at line 142 of file MnUserParameters.cxx.
Definition at line 74 of file MnUserParameters.cxx.
Referenced by ROOT::Minuit2::MnParameterScan::operator()(), SetValue(), and ROOT::Minuit2::MnUserParameterState::SetValue().
Definition at line 127 of file MnUserParameters.cxx.
|
inline |
Definition at line 55 of file MnUserParameters.h.
Referenced by ROOT::Minuit2::MnUserParameterState::Ext2int(), ROOT::Minuit2::MnUserParameterState::ExtOfInt(), ROOT::Minuit2::MnUserParameterState::Int2ext(), ROOT::Minuit2::MnUserParameterState::IntOfExt(), ROOT::Minuit2::MnUserParameterState::Trafo(), and ROOT::Minuit2::MnUserParameterState::VariableParameters().
double ROOT::Minuit2::MnUserParameters::Value | ( | unsigned int | n | ) | const |
Definition at line 105 of file MnUserParameters.cxx.
Referenced by Value(), and ROOT::Minuit2::MnUserParameterState::Value().
double ROOT::Minuit2::MnUserParameters::Value | ( | const std::string & | name | ) | const |
Definition at line 157 of file MnUserParameters.cxx.
|
inline |
Definition at line 57 of file MnUserParameters.h.
Referenced by main().
|
private |
Definition at line 117 of file MnUserParameters.h.
Referenced by Add(), Error(), Errors(), Fix(), GetName(), Index(), Name(), operator=(), Parameter(), Parameters(), Params(), Precision(), Release(), RemoveLimits(), SetError(), SetLimits(), SetLowerLimit(), SetName(), SetPrecision(), SetUpperLimit(), SetValue(), Trafo(), Value(), and VariableParameters().