12#include "MantidAPI/DllConfig.h"
32 size_t size()
const {
return m_calculated.size(); }
34 void expand(
size_t n);
37 double *getPointerToCalculated(
size_t i);
39 void zeroCalculated();
41 void setCalculated(
double value);
54 double operator[](
size_t i)
const {
return m_calculated[i]; }
68 void setFitData(
size_t i,
double value);
70 void setFitData(
const std::vector<double> &values);
72 double getFitData(
size_t i)
const;
74 void setFitWeight(
size_t i,
double value);
76 void setFitWeights(
const std::vector<double> &values);
78 void setFitWeights(
const double &
value);
80 double getFitWeight(
size_t i)
const;
86 std::vector<double>
toVector()
const {
return m_calculated; }
91 void copyTo(
double *to)
const;
94 void add(
double *to)
const;
98 void multiply(
double *to)
const;
double value
The value of the point.
Base class that represents the domain of a function.
A class to store values calculated by a function.
void addToCalculated(size_t i, double value)
Add a number to a calculated value.
std::vector< double > m_calculated
buffer for calculated values
void setCalculated(size_t i, double value)
Store i-th calculated value.
double operator[](size_t i) const
Get i-th calculated value.
std::vector< double > m_weights
buffer for fitting weights (reciprocal errors)
size_t size() const
Return the number of values.
std::vector< double > m_data
buffer for fit data
std::vector< double > toVector() const
Return the calculated values as a vector.
double getCalculated(size_t i) const
Get i-th calculated value.
std::shared_ptr< FunctionValues > FunctionValues_sptr
typedef for a shared pointer
MatrixWorkspace_sptr MANTID_API_DLL operator+=(const MatrixWorkspace_sptr &lhs, const MatrixWorkspace_sptr &rhs)
Adds two workspaces.
MatrixWorkspace_sptr MANTID_API_DLL operator*=(const MatrixWorkspace_sptr &lhs, const MatrixWorkspace_sptr &rhs)
Multiply two workspaces.
Helper class which provides the Collimation Length for SANS instruments.