14#include "MantidCurveFitting/DllConfig.h"
27namespace CurveFitting {
62 std::string
name()
const override {
return "TabulatedFunction"; }
63 const std::string
category()
const override {
return "General"; }
64 void function1D(
double *out,
const double *xValues,
const size_t nData)
const override;
66 void functionDeriv1D(
API::Jacobian *out,
const double *xValues,
const size_t nData)
override;
69 size_t nAttributes()
const override;
71 std::vector<std::string> getAttributeNames()
const override;
73 Attribute getAttribute(
const std::string &attName)
const override;
79 void load(
const std::string &fname);
82 void loadWorkspace(
const std::string &wsName)
const;
85 void loadWorkspace(std::shared_ptr<API::MatrixWorkspace> ws)
const;
88 size_t size()
const {
return m_yData.size(); }
94 void eval(
double scaling,
double xshift,
double xscale,
double *out,
const double *xValues,
const size_t nData)
const;
97 void setupData()
const;
double value
The value of the point.
This is a specialization of IFunction for functions of one real argument.
Attribute is a non-fitting parameter.
Represents the Jacobian in IFitFunction::functionDeriv.
Implements the part of IFunction interface dealing with parameters.
A function which takes its values from a file or a workspace.
static const int defaultIndexValue
The default value for the workspace index.
size_t size() const
Size of the data.
std::shared_ptr< API::MatrixWorkspace > m_workspace
Temporary workspace holder.
std::vector< double > m_yData
Stores y-values.
bool m_explicitXY
Flag of explicit x-y data setup.
bool m_setupFinished
Flag of completing data setup.
const std::string category() const override
The categories the Fit function belong to.
std::string name() const override
overwrite IFunction base class methods
std::vector< double > m_xData
Stores x-values.
Helper class which provides the Collimation Length for SANS instruments.