14class CompositeFunction;
19namespace CurveFitting {
21namespace CrystalFieldUtils {
27 const std::vector<double> &yVec,
double fwhmVariation,
double defaultFWHM,
28 size_t nRequiredPeaks,
bool fixAllPeaks);
31 const std::vector<double> &xVec,
const std::vector<double> &yVec,
double fwhmVariation,
32 double defaultFWHM,
bool fixAllPeaks);
A composite function is a function containing other functions.
A class to store values calculated by a function.
size_t calculateMaxNPeaks(size_t nPeaks)
Calculate the maximum number of peaks a spectrum can have.
size_t updateSpectrumFunction(API::CompositeFunction &spectrum, const std::string &peakShape, const API::FunctionValues ¢resAndIntensities, 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.
size_t calculateNPeaks(const API::FunctionValues ¢resAndIntensities)
Calculate the number of visible peaks.
size_t buildSpectrumFunction(API::CompositeFunction &spectrum, const std::string &peakShape, const API::FunctionValues ¢resAndIntensities, 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.
Helper class which provides the Collimation Length for SANS instruments.