Implements FunctionDomain1D as a set of bins for a histogram.
double leftBoundary() const
Get the leftmost boundary.
std::vector< double > m_bins
vector of bin boundaries
FunctionDomain1DHistogram(const std::vector< double > &bins)
Constructor.
FunctionDomain1DSpectrum(size_t wi, const std::vector< double > &xvalues)
Constructor.
Implements FunctionDomain1D with its own storage in form of a std::vector.
FunctionDomain1DVector(const double x)
Constructor.
FunctionDomain1DVector & operator=(const FunctionDomain1DVector &)
Copy assignment operator.
std::vector< double > m_X
vector of function arguments
Represent a domain for functions of one real argument.
int getPeakRadius() const
Get the peak radius.
void setPeakRadius(int radius)
Set a peak radius to pass to peak functions.
int m_peakRadius
A peak radius that IPeakFunctions should use.
const double * m_data
pointer to the start of the domain data
std::vector< double > toVector() const
Convert to a vector.
FunctionDomain1D(const FunctionDomain1D &right)=delete
copying is not allowed.
void resetData(const double *x, size_t n)
Reset the pointer and size of the domain.