16#include "MantidAPI/IFunction1D.tcc"
33using namespace Geometry;
47 throw std::invalid_argument(
"Unexpected domain in IFunction1D");
55 histogramDerivative1D(&jacobian, histoDomain->leftBoundary(), histoDomain->getPointerAt(0), histoDomain->size());
60 throw std::invalid_argument(
"Unexpected domain in IFunction1D");
68 throw std::invalid_argument(
"Unexpected domain in IFunction1D");
83 auto evalMethod = [
this](
double *out,
const double *xValues,
const size_t nData) {
111 const size_t nBins)
const {
#define UNUSED_ARG(x)
Function arguments are sometimes unused in certain implmentations but are required for documentation ...
Implements FunctionDomain1D as a set of bins for a histogram.
Represent a domain for functions of one real argument.
Base class that represents the domain of a function.
A class to store values calculated by a function.
double * getPointerToCalculated(size_t i)
Get a pointer to calculated data at index i.
virtual void histogram1D(double *out, double left, const double *right, const size_t nBins) const
Calculate histogram data for the given bin boundaries.
virtual void derivative(const FunctionDomain &domain, FunctionValues &values, const size_t order=1) const
void functionDeriv(const FunctionDomain &domain, Jacobian &jacobian) override
Derivatives of function with respect to active parameters.
virtual void derivative1D(double *out, const double *xValues, const size_t nData, const size_t order) const
Function to calculate the derivatives of the data set.
virtual void histogramDerivative1D(Jacobian *jacobian, double left, const double *right, const size_t nBins) const
Derivatives of the histogram1D with respect to active parameters.
void calcNumericalDerivative1D(Jacobian *jacobian, EvaluationMethod func1D, const double *xValues, const size_t nData)
Calculate a numerical derivative for the 1D data.
virtual void functionDeriv1D(Jacobian *jacobian, const double *xValues, const size_t nData)
Derivatives of function with respect to active parameters.
void function(const FunctionDomain &domain, FunctionValues &values) const override
Evaluates the function for all arguments in the domain.
virtual void function1D(double *out, const double *xValues, const size_t nData) const =0
Function you want to fit to.
static Kernel::Logger g_log
Logger instance.
Represents the Jacobian in IFitFunction::functionDeriv.
Marks code as not implemented yet.