37 size_t size()
const override {
return m_n; }
44 std::vector<double> toVector()
const;
46 void setPeakRadius(
int radius);
48 int getPeakRadius()
const;
92 std::vector<double>
m_X;
125 FunctionDomain1DSpectrum(
size_t wi, std::vector<double>::const_iterator from, std::vector<double>::const_iterator to);
152 double leftBoundary()
const;
const std::vector< Type > & m_data
Implements FunctionDomain1D as a set of bins for a histogram.
FunctionDomain1DHistogram & operator=(const FunctionDomain1DHistogram &)=delete
Disable assignment operator.
FunctionDomain1DHistogram(const FunctionDomain1DHistogram &)=delete
Disable copy operator.
std::vector< double > m_bins
vector of bin boundaries
Specialization of FunctionDomain1DVector for spectra of MatrixWorkspaces.
size_t m_workspaceIndex
The workspace index.
size_t getWorkspaceIndex() const
Get the workspace index.
Implements FunctionDomain1D with its own storage in form of a std::vector.
std::vector< double > getVector()
Get the underlying vector.
std::vector< double > m_X
vector of function arguments
1D domain - a wrapper around an array of doubles.
FunctionDomain1DView & operator=(const FunctionDomain1DView &)
Private copy assignment operator - copying is not allowed.
FunctionDomain1DView(const double *x, size_t n)
Creates a FunctionDomain1DView pointing to an array of doubles of size n.
FunctionDomain1DView(const FunctionDomain1DView &)
Private copy constructor - copying is not allowed.
Represent a domain for functions of one real argument.
size_t size() const override
Return the number of arguments in the domain.
FunctionDomain1D & operator=(const FunctionDomain1D &)=delete
copying is not allowed.
size_t m_n
size of the data
const double * getPointerAt(size_t i) const
Get a pointer to i-th value.
int m_peakRadius
A peak radius that IPeakFunctions should use.
const double * m_data
pointer to the start of the domain data
double operator[](size_t i) const
Get an x value.
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.
Base class that represents the domain of a function.
std::shared_ptr< const FunctionDomain1D > FunctionDomain1D_const_sptr
typedef for a shared pointer to a const FunctionDomain1D
std::shared_ptr< FunctionDomain1D > FunctionDomain1D_sptr
typedef for a shared pointer to a FunctionDomain1D
Helper class which provides the Collimation Length for SANS instruments.