Mantid
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
FitPowderDiffPeaks.cpp File Reference
#include "MantidCurveFitting/Algorithms/FitPowderDiffPeaks.h"
#include "MantidKernel/ArrayProperty.h"
#include "MantidKernel/ListValidator.h"
#include "MantidKernel/Statistics.h"
#include "MantidAPI/Column.h"
#include "MantidAPI/ConstraintFactory.h"
#include "MantidAPI/FunctionDomain1D.h"
#include "MantidAPI/FunctionFactory.h"
#include "MantidAPI/FunctionValues.h"
#include "MantidAPI/IFunction.h"
#include "MantidAPI/IPeakFunction.h"
#include "MantidAPI/ParameterTie.h"
#include "MantidAPI/TableRow.h"
#include "MantidAPI/TextAxis.h"
#include "MantidAPI/WorkspaceFactory.h"
#include "MantidCurveFitting/Algorithms/Fit.h"
#include "MantidCurveFitting/Constraints/BoundaryConstraint.h"
#include "MantidCurveFitting/CostFunctions/CostFuncFitting.h"
#include "MantidCurveFitting/FuncMinimizers/DampedGaussNewtonMinimizer.h"
#include "MantidCurveFitting/Functions/BackToBackExponential.h"
#include "MantidCurveFitting/Functions/BackgroundFunction.h"
#include "MantidCurveFitting/Functions/Gaussian.h"
#include "MantidCurveFitting/Functions/Polynomial.h"
#include "MantidCurveFitting/Functions/ThermalNeutronBk2BkExpConvPVoigt.h"
#include "MantidCurveFitting/Functions/ThermalNeutronDtoTOFFunction.h"
#include <fstream>
#include <cmath>
#include <utility>
#include <gsl/gsl_sf_erf.h>

Go to the source code of this file.

Namespaces

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

Macros

#define EXCLUDEPEAKRANGEFACTOR   8.0
 Factor on FWHM for excluding peak to fit background. More...
 
#define PEAKBOUNDARYFACTOR   2.5
 Factor on FWHM for defining a peak's range. More...
 
#define PEAKFITRANGEFACTOR   5.0
 Factor on FWHM for fitting a peak. More...
 
#define WINDOWSIZE   3.0
 Factor on FWHM to fit a peak. More...
 

Functions

void Mantid::CurveFitting::Algorithms::estimateBackgroundCoarse (const DataObjects::Workspace2D_sptr &dataws, const Functions::BackgroundFunction_sptr &background, size_t wsindexraw, size_t wsindexbkgd, size_t wsindexpeak)
 Estimate background for a pattern in a coarse mode. More...
 
size_t Mantid::CurveFitting::Algorithms::findMaxValue (const API::MatrixWorkspace_sptr &dataws, size_t wsindex, double leftbound, double rightbound)
 Find maximum value. More...
 
size_t Mantid::CurveFitting::Algorithms::findMaxValue (const std::vector< double > &Y)
 Find maximum value. More...
 
std::string Mantid::CurveFitting::Algorithms::getFunctionInfo (const API::IFunction_sptr &function)
 Get function parameter name, value and etc information in string. More...
 
bool Mantid::CurveFitting::Algorithms::observePeakParameters (const DataObjects::Workspace2D_sptr &dataws, size_t wsindex, double &centre, double &height, double &fwhm, std::string &errmsg)
 Estimate peak parameters;. More...
 

Macro Definition Documentation

◆ EXCLUDEPEAKRANGEFACTOR

#define EXCLUDEPEAKRANGEFACTOR   8.0

Factor on FWHM for excluding peak to fit background.

Definition at line 50 of file FitPowderDiffPeaks.cpp.

◆ PEAKBOUNDARYFACTOR

#define PEAKBOUNDARYFACTOR   2.5

Factor on FWHM for defining a peak's range.

Definition at line 47 of file FitPowderDiffPeaks.cpp.

◆ PEAKFITRANGEFACTOR

#define PEAKFITRANGEFACTOR   5.0

Factor on FWHM for fitting a peak.

Definition at line 44 of file FitPowderDiffPeaks.cpp.

◆ WINDOWSIZE

#define WINDOWSIZE   3.0

Factor on FWHM to fit a peak.

Definition at line 52 of file FitPowderDiffPeaks.cpp.