33 virtual double centre()
const;
35 virtual double height()
const;
37 virtual double fwhm()
const;
39 virtual void setHeight(
const double h);
41 virtual void setPeakRadius(
const int &r);
46 virtual void setMillerIndex(
int h,
int k,
int l);
49 virtual void getMillerIndex(
int &h,
int &k,
int &l);
65 void setParameter(
size_t i,
const double &
value,
bool explicitlySet =
true)
override;
68 void setParameter(
const std::string &name,
const double &
value,
bool explicitlySet =
true)
override;
71 virtual bool hasProfileParameter(std::string paramname);
77 using IFunction1D::function;
78 virtual void function(std::vector<double> &out,
const std::vector<double> &xValues)
const = 0;
81 virtual double getMaximumValue(
const std::vector<double> &xValues,
size_t &indexmax)
const;
141std::complex<double> MANTID_API_DLL
E1(std::complex<double>
z);
double value
The value of the point.
This is a specialization of IFunction for functions of one real argument.
An interface to a peak function, which extend the interface of IFunctionWithLocation by adding method...
bool m_cellParamValueChanged
An indicator to re-calculate peak d-space position.
bool m_parameterValid
Flag to indicate whether peaks' parameters value can generate a valid peak.
virtual double getPeakParameter(const std::string &)=0
Get peak parameters.
virtual void setUnitCellParameterValueChangeFlag(bool changed)
Set up the flag to show whether (from client) cell parameter value changed.
double m_unitCellSize
Unit cell size.
Geometry::UnitCell m_unitCell
Unit cell.
double m_centre
Centre of the peak.
virtual void calculateParameters(bool explicitoutput) const =0
Calculate peak parameters (alpha, beta, sigma2..)
virtual bool isPhysical()
The flag to show whether the parameters set to peak function making an valid peak.
bool m_hasNewParameterValue
Flag if any parameter value changed.
double m_dcentre
Centre of the peak in d-space.
double m_fwhm
Peak's FWHM.
virtual void function(std::vector< double > &out, const std::vector< double > &xValues) const =0
static int s_peakRadius
Local function for GSL minimizer.
std::vector< std::string > m_sortedProfileParameterNames
Peak profile parameters names in ascending order.
Implements the part of IFunction interface dealing with parameters.
Class to implement unit cell of crystals.
std::complex< double > MANTID_API_DLL E1(std::complex< double > z)
Integral for Gamma.
std::shared_ptr< IPowderDiffPeakFunction > IPowderDiffPeakFunction_sptr
Helper class which provides the Collimation Length for SANS instruments.