17 }
catch (
const std::bad_cast &) {
18 throw std::invalid_argument(
"Provided domain is not of type FunctionDomain1DSpectrum.");
26 }
catch (
const std::bad_cast &) {
27 throw std::invalid_argument(
"Provided domain is not of type FunctionDomain1DSpectrum.");
Specialization of FunctionDomain1DVector for spectra of MatrixWorkspaces.
Base class that represents the domain of a function.
A class to store values calculated by a function.
virtual void function1DSpectrum(const FunctionDomain1DSpectrum &domain, FunctionValues &values) const =0
Provide a concrete function in an implementation that operates on a FunctionDomain1DSpectrum.
void function(const FunctionDomain &domain, FunctionValues &values) const override
Evaluates the function for all arguments in the domain.
virtual void functionDeriv1DSpectrum(const FunctionDomain1DSpectrum &domain, Jacobian &jacobian)
Derivatives of the function.
static Kernel::Logger g_log
void functionDeriv(const FunctionDomain &domain, Jacobian &jacobian) override
Derivatives of function with respect to active parameters.
void calNumericalDeriv(const FunctionDomain &domain, Jacobian &jacobian)
Calculate numerical derivatives.
Represents the Jacobian in IFitFunction::functionDeriv.