Mantid
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Mantid::CurveFitting::Algorithms::FitData Struct Reference

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...
 
Fit1Dfit1D
 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...
 

Detailed Description

Structure to contain least squares data and used by GSL.

Definition at line 82 of file Fit1D.cpp.

Constructor & Destructor Documentation

◆ FitData()

Mantid::CurveFitting::Algorithms::FitData::FitData ( Fit1D fit,
const std::string &  fixed 
)

Constructor.

Parameters
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.

Member Data Documentation

◆ active

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

Fit1D* Mantid::CurveFitting::Algorithms::FitData::fit1D

pointer to instance of Fit1D

Definition at line 96 of file Fit1D.cpp.

Referenced by FitData().

◆ forSimplexLSwrap

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().

◆ J

JacobianImpl Mantid::CurveFitting::Algorithms::FitData::J

Jacobi matrix interface.

Definition at line 107 of file Fit1D.cpp.

Referenced by FitData().

◆ n

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().

◆ p

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().

◆ parameters

double* Mantid::CurveFitting::Algorithms::FitData::parameters

◆ sigmaData

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().

◆ X

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().

◆ Y

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().


The documentation for this struct was generated from the following file: