42 void setProfileParameterValues(std::map<std::string, double> parammap);
45 void setFitProfileParameter(
const std::string ¶mname,
double minvalue,
double maxvalue);
48 void setPeakHeights(
const std::vector<double> &inheights);
51 bool hasProfileParameter(
const std::string ¶mname);
55 bool isParameterValid(
double maxfwhm = DBL_MAX)
const;
58 void setPeakCentreTolerance(
double peakpostol,
double tofmin,
double tofmax);
61 void addPeaks(
const std::vector<std::vector<int>> &peakhkls);
64 void addBackgroundFunction(
const std::string &backgroundtype,
const unsigned int &order,
65 const std::vector<std::string> &vecparnames,
const std::vector<double> &vecparvalues,
66 double startx,
double endx);
72 Mantid::HistogramData::HistogramY function(
const Mantid::HistogramData::HistogramX &xvalues,
bool calpeaks,
76 Mantid::HistogramData::HistogramY calPeak(
size_t ipk,
const std::vector<double> &xvalues,
size_t ySize)
const;
88 double getPeakParameter(
size_t index,
const std::string &parname)
const;
91 double getPeakParameter(std::vector<int> hkl,
const std::string &parname)
const;
94 void fixPeakParameter(
const std::string ¶mname,
double paramvalue);
97 void fixBackgroundParameters();
100 void setFixPeakHeights();
103 bool calculatePeaksIntensities(
const std::vector<double> &vecX,
const std::vector<double> &vecY,
104 std::vector<double> &vec_summedpeaks);
107 double getPeakMaximumValue(std::vector<int> hkl,
const std::vector<double> &xvalues,
size_t &ix);
112 double peakheight,
bool setpeakheight);
118 void calculatePeakParameterValues()
const;
124 bool calculateGroupPeakIntensities(std::vector<std::pair<double, API::IPowderDiffPeakFunction_sptr>> peakgroup,
125 const std::vector<double> &vecX,
const std::vector<double> &vecY,
126 std::vector<double> &vec_summedpeaks);
129 void groupPeaks(std::vector<std::vector<std::pair<double, API::IPowderDiffPeakFunction_sptr>>> &peakgroupvec,
130 std::vector<API::IPowderDiffPeakFunction_sptr> &outboundpeakvec,
double xmin,
double xmax);
147 std::vector<std::pair<double, API::IPowderDiffPeakFunction_sptr>>
m_dspPeakVec;
186 mutable std::vector<std::map<std::string, double> > mPeakParameters;