Mantid
|
Structure to contain least squares data and used by GSL. More...
Public Member Functions | |
FitData (Fit1D *fit, const std::string &fixed) | |
Constructor. More... | |
Public Attributes | |
std::vector< bool > | active |
Holds a boolean for each parameter, true if it's active or false if it's fixed. More... | |
Fit1D * | fit1D |
pointer to instance of Fit1D More... | |
double * | forSimplexLSwrap |
Needed to use the simplex algorithm within the gsl least-squared framework. More... | |
JacobianImpl | J |
Jacobi matrix interface. More... | |
size_t | n |
number of points to be fitted (size of X, Y and sigmaData arrays) More... | |
size_t | p |
number of (active) fit parameters More... | |
double * | parameters |
A copy of the parameters. More... | |
double * | sigmaData |
the standard deviations of the Y data points More... | |
double * | X |
the data to be fitted (abscissae) More... | |
const double * | Y |
the data to be fitted (ordinates) More... | |
Mantid::CurveFitting::Algorithms::FitData::FitData | ( | Fit1D * | fit, |
const std::string & | fixed | ||
) |
Constructor.
fit | :: A pointer to the Fit1D class |
fixed | :: A list of comma separated names of the fixed parameters. |
Definition at line 725 of file Fit1D.cpp.
References active, fit1D, J, Mantid::CurveFitting::Algorithms::JacobianImpl::m_map, Mantid::CurveFitting::Algorithms::Fit1D::m_parameterNames, p, and Mantid::Kernel::StringTokenizer::TOK_TRIM.
std::vector<bool> Mantid::CurveFitting::Algorithms::FitData::active |
Holds a boolean for each parameter, true if it's active or false if it's fixed.
Definition at line 105 of file Fit1D.cpp.
Referenced by Mantid::CurveFitting::Algorithms::Fit1D::exec(), and FitData().
Fit1D* Mantid::CurveFitting::Algorithms::FitData::fit1D |
double* Mantid::CurveFitting::Algorithms::FitData::forSimplexLSwrap |
Needed to use the simplex algorithm within the gsl least-squared framework.
Will store output function values from gsl_f
Definition at line 100 of file Fit1D.cpp.
Referenced by Mantid::CurveFitting::Algorithms::Fit1D::exec(), and Mantid::CurveFitting::Algorithms::gsl_costFunction().
JacobianImpl Mantid::CurveFitting::Algorithms::FitData::J |
size_t Mantid::CurveFitting::Algorithms::FitData::n |
number of points to be fitted (size of X, Y and sigmaData arrays)
Definition at line 86 of file Fit1D.cpp.
Referenced by Mantid::CurveFitting::Algorithms::Fit1D::exec().
size_t Mantid::CurveFitting::Algorithms::FitData::p |
number of (active) fit parameters
Definition at line 88 of file Fit1D.cpp.
Referenced by Mantid::CurveFitting::Algorithms::Fit1D::exec(), and FitData().
double* Mantid::CurveFitting::Algorithms::FitData::parameters |
A copy of the parameters.
Definition at line 102 of file Fit1D.cpp.
Referenced by Mantid::CurveFitting::Algorithms::Fit1D::exec(), Mantid::CurveFitting::Algorithms::gsl_df(), and Mantid::CurveFitting::Algorithms::gsl_f().
double* Mantid::CurveFitting::Algorithms::FitData::sigmaData |
the standard deviations of the Y data points
Definition at line 94 of file Fit1D.cpp.
Referenced by Mantid::CurveFitting::Algorithms::Fit1D::exec().
double* Mantid::CurveFitting::Algorithms::FitData::X |
the data to be fitted (abscissae)
Definition at line 90 of file Fit1D.cpp.
Referenced by Mantid::CurveFitting::Algorithms::Fit1D::exec().
const double* Mantid::CurveFitting::Algorithms::FitData::Y |
the data to be fitted (ordinates)
Definition at line 92 of file Fit1D.cpp.
Referenced by Mantid::CurveFitting::Algorithms::Fit1D::exec().