Mantid
Loading...
Searching...
No Matches
Namespaces | Functions
CrystalFieldPeakUtils.cpp File Reference
#include "MantidCurveFitting/Functions/CrystalFieldPeakUtils.h"
#include "MantidAPI/CompositeFunction.h"
#include "MantidAPI/FunctionFactory.h"
#include "MantidAPI/IPeakFunction.h"
#include "MantidCurveFitting/Constraints/BoundaryConstraint.h"
#include <algorithm>
#include <cmath>

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::Functions
 
namespace  Mantid::CurveFitting::Functions::CrystalFieldUtils
 

Functions

size_t Mantid::CurveFitting::Functions::CrystalFieldUtils::buildSpectrumFunction (API::CompositeFunction &spectrum, const std::string &peakShape, const API::FunctionValues &centresAndIntensities, const std::vector< double > &xVec, const std::vector< double > &yVec, double fwhmVariation, double defaultFWHM, size_t nRequiredPeaks, bool fixAllPeaks)
 Utility functions to help set up peak functions in a Crystal Field spectrum. More...
 
size_t Mantid::CurveFitting::Functions::CrystalFieldUtils::calculateMaxNPeaks (size_t nPeaks)
 Calculate the maximum number of peaks a spectrum can have. More...
 
size_t Mantid::CurveFitting::Functions::CrystalFieldUtils::calculateNPeaks (const API::FunctionValues &centresAndIntensities)
 Calculate the number of visible peaks. More...
 
double Mantid::CurveFitting::Functions::CrystalFieldUtils::calculateWidth (double x, const std::vector< double > &xVec, const std::vector< double > &yVec)
 Calculate the width of a peak cenrted at x using an interpolated value of a function tabulated at xVec points. More...
 
API::IPeakFunction_sptr Mantid::CurveFitting::Functions::CrystalFieldUtils::createPeak (const std::string &peakShape, double centre, double intensity, const std::vector< double > &xVec, const std::vector< double > &yVec, double fwhmVariation, double defaultFWHM, bool isGood, bool fixAllPeaks)
 Create a single peak. More...
 
void Mantid::CurveFitting::Functions::CrystalFieldUtils::ignorePeak (API::IPeakFunction &peak, double fwhm)
 Set peak's properties such that it was invisible in the spectrum. More...
 
void Mantid::CurveFitting::Functions::CrystalFieldUtils::setPeakWidth (API::IPeakFunction &peak, double centre, const std::vector< double > &xVec, const std::vector< double > &yVec, double fwhmVariation, double defaultFWHM, bool useDefaultFWHM)
 Set the width of a peak. More...
 
void Mantid::CurveFitting::Functions::CrystalFieldUtils::setWidthConstraint (API::IPeakFunction &peak, double fwhm, double fwhmVariation)
 Set a boundary constraint on the appropriate parameter of the peak. More...
 
void Mantid::CurveFitting::Functions::CrystalFieldUtils::updatePeak (API::IPeakFunction &peak, double centre, double intensity, const std::vector< double > &xVec, const std::vector< double > &yVec, double fwhmVariation, bool isGood, bool fixAllPeaks)
 Update a single peak. More...
 
void Mantid::CurveFitting::Functions::CrystalFieldUtils::updatePeakWidth (API::IPeakFunction &peak, double centre, const std::vector< double > &xVec, const std::vector< double > &yVec, double fwhmVariation)
 Update width of a peak. More...
 
size_t Mantid::CurveFitting::Functions::CrystalFieldUtils::updateSpectrumFunction (API::CompositeFunction &spectrum, const std::string &peakShape, const FunctionValues &centresAndIntensities, size_t iFirst, const std::vector< double > &xVec, const std::vector< double > &yVec, double fwhmVariation, double defaultFWHM, bool fixAllPeaks)
 Update the peaks parameters after recalculationof the crystal field. More...