Mantid
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Enumerations | Functions | Variables
ParameterEstimator.cpp File Reference
#include "MantidCurveFitting/ParameterEstimator.h"
#include "MantidCurveFitting/Functions/SimpleChebfun.h"
#include "MantidAPI/CompositeFunction.h"
#include "MantidAPI/FunctionDomain1D.h"
#include "MantidAPI/FunctionValues.h"
#include "MantidKernel/Logger.h"
#include <cmath>
#include <mutex>

Go to the source code of this file.

Classes

class  Mantid::CurveFitting::ParameterEstimator::LinearFunction
 A linear function. More...
 

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 
namespace  Mantid::CurveFitting
 
namespace  Mantid::CurveFitting::ParameterEstimator
 

Typedefs

using Mantid::CurveFitting::ParameterEstimator::FunctionMapType = std::map< std::string, std::pair< size_t, Function > >
 

Enumerations

enum  Mantid::CurveFitting::ParameterEstimator::Function { Mantid::CurveFitting::ParameterEstimator::None , Mantid::CurveFitting::ParameterEstimator::Gaussian , Mantid::CurveFitting::ParameterEstimator::Lorentzian , Mantid::CurveFitting::ParameterEstimator::BackToBackExponential }
 

Functions

void MANTID_CURVEFITTING_DLL Mantid::CurveFitting::ParameterEstimator::estimate (API::IFunction &function, const API::FunctionDomain1D &domain, const API::FunctionValues &values)
 ParameterEstimator estimates parameter values of some fitting functions from fitting data. More...
 
void Mantid::CurveFitting::ParameterEstimator::extractValues (const API::FunctionDomain1D &domain, const API::FunctionValues &values, std::vector< double > &x, std::vector< double > &y)
 Extract values from domain and values objects to vectors. More...
 
const FunctionMapType & Mantid::CurveFitting::ParameterEstimator::getFunctionMapType ()
 Returns a reference to the static functionMapType. More...
 
double Mantid::CurveFitting::ParameterEstimator::getPeakCentre (double centre, const SimpleChebfun &der1)
 Improve an estimate of a peak centre. More...
 
std::pair< double, double > Mantid::CurveFitting::ParameterEstimator::getPeakHWHM (double centre, double height, const SimpleChebfun &fun)
 Get displacements from peak centre where peak reaches half the maximum. More...
 
std::pair< double, double > Mantid::CurveFitting::ParameterEstimator::getPeakLeftRightExtent (double centre, const SimpleChebfun &der2)
 Get the peak's extent on either side of the centre. More...
 
std::pair< double, double > Mantid::CurveFitting::ParameterEstimator::getPeakLeftRightWidth (double centre, const SimpleChebfun &der2, size_t n=1)
 Get a measure of peak's width. More...
 
double Mantid::CurveFitting::ParameterEstimator::getPeakWidth (double centre, const SimpleChebfun &der2)
 Estimate a peak width from a second derivative of the data. More...
 
void Mantid::CurveFitting::ParameterEstimator::initFunctionLookup (FunctionMapType &functionMapType)
 Initializes a FunctionMapType object. More...
 
bool Mantid::CurveFitting::ParameterEstimator::needSettingInitialValues (const API::IFunction &function)
 Test if initial values need to be set before fitting. More...
 
void Mantid::CurveFitting::ParameterEstimator::setBackToBackExponential (API::IFunction &function, const SimpleChebfun &fun, const SimpleChebfun &der1, const SimpleChebfun &der2)
 Set initial values to a BackToBackExponential. More...
 
void Mantid::CurveFitting::ParameterEstimator::setValues (API::IFunction &function, const SimpleChebfun &fun, const SimpleChebfun &der1, const SimpleChebfun &der2)
 Set initial values to a function if it needs to. More...
 
Function Mantid::CurveFitting::ParameterEstimator::whichFunction (const API::IFunction &function)
 Return a function code for a function if it needs setting values or None otherwise. More...
 

Variables

Kernel::Logger Mantid::CurveFitting::ParameterEstimator::g_log ("ParameterEstimator")
 The logger. More...