44 void setProfileParameterValues(std::map<std::string, double> parammap);
47 void setFitProfileParameter(
const std::string ¶mname,
double minvalue,
double maxvalue);
50 void setPeakHeights(
const std::vector<double> &inheights);
53 bool hasProfileParameter(
const std::string ¶mname);
57 bool isParameterValid(
double maxfwhm = DBL_MAX)
const;
60 void setPeakCentreTolerance(
double peakpostol,
double tofmin,
double tofmax);
63 void addPeaks(
const std::vector<std::vector<int>> &peakhkls);
66 void addBackgroundFunction(
const std::string &backgroundtype,
const unsigned int &order,
67 const std::vector<std::string> &vecparnames,
const std::vector<double> &vecparvalues,
68 double startx,
double endx);
74 Mantid::HistogramData::HistogramY function(
const Mantid::HistogramData::HistogramX &xvalues,
bool calpeaks,
78 Mantid::HistogramData::HistogramY calPeak(
size_t ipk, std::span<double const> xvalues,
size_t ySize)
const;
90 double getPeakParameter(
size_t index,
const std::string &parname)
const;
93 double getPeakParameter(std::vector<int> hkl,
const std::string &parname)
const;
96 void fixPeakParameter(
const std::string ¶mname,
double paramvalue);
99 void fixBackgroundParameters();
102 void setFixPeakHeights();
105 bool calculatePeaksIntensities(std::span<double const> vecX, std::span<double const> vecY,
106 std::vector<double> &vec_summedpeaks);
109 double getPeakMaximumValue(std::vector<int> hkl,
const std::vector<double> &xvalues,
size_t &ix);
114 double peakheight,
bool setpeakheight);
120 void calculatePeakParameterValues()
const;
126 bool calculateGroupPeakIntensities(std::vector<std::pair<double, API::IPowderDiffPeakFunction_sptr>> peakgroup,
127 std::span<double const> vecX, std::span<double const> vecY,
128 std::vector<double> &vec_summedpeaks);
131 void groupPeaks(std::vector<std::vector<std::pair<double, API::IPowderDiffPeakFunction_sptr>>> &peakgroupvec,
132 std::vector<API::IPowderDiffPeakFunction_sptr> &outboundpeakvec,
double xmin,
double xmax);
149 std::vector<std::pair<double, API::IPowderDiffPeakFunction_sptr>>
m_dspPeakVec;
188 mutable std::vector<std::map<std::string, double> > mPeakParameters;