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

Various GSL specific functions used GSL specific minimizers. More...

#include <GSLFunctions.h>

Public Member Functions

 GSL_FitData (const std::shared_ptr< CostFunctions::CostFuncFitting > &cf)
 Constructor.
 
 ~GSL_FitData ()
 Destructor.
 

Public Attributes

std::shared_ptr< CostFunctions::CostFuncFitting > costFunction
 
API::IFunction_sptr function
 Pointer to the function.
 
gsl_vector * initFuncParams
 Initial function parameters.
 
JacobianImpl1< EigenMatrix > J
 Jacobi matrix interface.
 
double(* m_loss )(const std::shared_ptr< API::FunctionValues > &values, size_t index)
 
double(* m_scaleFactor )(const std::shared_ptr< API::FunctionValues > &values, size_t index)
 
size_t n
 number of points to be fitted (size of X, Y and sqrtWeightData arrays)
 
size_t p
 number of (active) fit parameters
 

Detailed Description

Various GSL specific functions used GSL specific minimizers.

Author
Anders Markvardsen, ISIS, RAL
Date
14/05/2010 Structure to contain least squares data and used by GSL

Definition at line 29 of file GSLFunctions.h.

Constructor & Destructor Documentation

◆ GSL_FitData()

Mantid::CurveFitting::GSL_FitData::GSL_FitData ( const std::shared_ptr< CostFunctions::CostFuncFitting > &  cf)

Constructor.

Creates declared -> active index map

Parameters
cf:: ICostFunction

Definition at line 190 of file GSLFunctions.cpp.

References function, initFuncParams, J, m_loss, m_scaleFactor, n, and p.

◆ ~GSL_FitData()

Mantid::CurveFitting::GSL_FitData::~GSL_FitData ( )

Destructor.

Definition at line 244 of file GSLFunctions.cpp.

References initFuncParams.

Member Data Documentation

◆ costFunction

std::shared_ptr<CostFunctions::CostFuncFitting> Mantid::CurveFitting::GSL_FitData::costFunction

Definition at line 40 of file GSLFunctions.h.

◆ function

API::IFunction_sptr Mantid::CurveFitting::GSL_FitData::function

Pointer to the function.

Definition at line 39 of file GSLFunctions.h.

Referenced by Mantid::CurveFitting::gsl_f(), and GSL_FitData().

◆ initFuncParams

gsl_vector* Mantid::CurveFitting::GSL_FitData::initFuncParams

Initial function parameters.

Definition at line 42 of file GSLFunctions.h.

Referenced by GSL_FitData(), and ~GSL_FitData().

◆ J

JacobianImpl1<EigenMatrix> Mantid::CurveFitting::GSL_FitData::J

Jacobi matrix interface.

Definition at line 44 of file GSLFunctions.h.

Referenced by GSL_FitData().

◆ m_loss

double(* Mantid::CurveFitting::GSL_FitData::m_loss) (const std::shared_ptr< API::FunctionValues > &values, size_t index)

Definition at line 45 of file GSLFunctions.h.

Referenced by GSL_FitData().

◆ m_scaleFactor

double(* Mantid::CurveFitting::GSL_FitData::m_scaleFactor) (const std::shared_ptr< API::FunctionValues > &values, size_t index)

Definition at line 46 of file GSLFunctions.h.

Referenced by GSL_FitData().

◆ n

size_t Mantid::CurveFitting::GSL_FitData::n

number of points to be fitted (size of X, Y and sqrtWeightData arrays)

Definition at line 35 of file GSLFunctions.h.

Referenced by GSL_FitData().

◆ p

size_t Mantid::CurveFitting::GSL_FitData::p

number of (active) fit parameters

Definition at line 37 of file GSLFunctions.h.

Referenced by GSL_FitData().


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