15using namespace Kernel;
27int CalculateCostFunction::version()
const {
return 1; }
30const std::string CalculateCostFunction::summary()
const {
31 return "Calculate cost function for a function and a data set in a "
37void CalculateCostFunction::initConcrete() {
44void CalculateCostFunction::execConcrete() {
#define DECLARE_ALGORITHM(classname)
double value
The value of the point.
void declareProperty(std::unique_ptr< Kernel::Property > p, const std::string &doc="") override
Add a property to the list of managed properties.
Calculate cost function for a function and a data set in a workspace.
std::shared_ptr< CostFunctions::CostFuncFitting > m_costFunction
Cache for the cost function.
void declareCostFunctionProperty()
Declare a "CostFunction" property.
std::shared_ptr< CostFunctions::CostFuncFitting > getCostFunctionInitialized() const
Create a cost function from the "CostFunction" property and make it ready for evaluation.
IPropertyManager * setProperty(const std::string &name, const T &value)
Templated method to set the value of a PropertyWithValue.
@ Output
An output workspace.