14#include "MantidCurveFitting/DllConfig.h"
26namespace CurveFitting {
61 std::string
name()
const override {
return "TabulatedFunction"; }
62 const std::string
category()
const override {
return "General"; }
63 void function1D(
double *out,
const double *xValues,
const size_t nData)
const override;
65 void functionDeriv1D(
API::Jacobian *out,
const double *xValues,
const size_t nData)
override;
68 size_t nAttributes()
const override;
70 std::vector<std::string> getAttributeNames()
const override;
72 Attribute getAttribute(
const std::string &attName)
const override;
78 void load(
const std::string &fname);
81 void loadWorkspace(
const std::string &wsName)
const;
84 void loadWorkspace(std::shared_ptr<API::MatrixWorkspace> ws)
const;
87 size_t size()
const {
return m_yData.size(); }
93 void eval(
double scaling,
double xshift,
double xscale,
double *out,
const double *xValues,
const size_t nData)
const;
96 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.