44 "An input workspace that provides dimensions for the output.");
46 "Parameters defining the fitting function and its initial values");
48 "An output workspace.");
59 cloner->setChild(
true);
60 cloner->setProperty(
"InputWorkspace", input);
61 cloner->setPropertyValue(
"OutputWorkspace",
"_");
68 throw std::runtime_error(
"Cannot create output workspace");
71 function->setWorkspace(output);
76 function->function(domain, values);
79 size_t length = values.
size();
80 auto outputData = output->mutableSignalArray();
81 std::copy(data, data + length, outputData);
#define DECLARE_ALGORITHM(classname)
void declareProperty(std::unique_ptr< Kernel::Property > p, const std::string &doc="") override
Add a property to the list of managed properties.
TypedValue getProperty(const std::string &name) const override
Get the value of a property.
Implements a domain for MD functions (IFunctionMD).
A class to store values calculated by a function.
double * getPointerToCalculated(size_t i)
Get a pointer to calculated data at index i.
size_t size() const
Return the number of values.
A property class for workspaces.
IPropertyManager * setProperty(const std::string &name, const T &value)
Templated method to set the value of a PropertyWithValue.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
EvaluateMDFunction : TODO: DESCRIPTION.
void exec() override
Execute the algorithm.
const std::string category() const override
Algorithm's category for identification.
const std::string summary() const override
Algorithm's summary for use in the GUI and help.
int version() const override
Algorithm's version for identification.
void init() override
Initialize the algorithm's properties.
std::shared_ptr< IMDHistoWorkspace > IMDHistoWorkspace_sptr
shared pointer to Mantid::API::IMDHistoWorkspace
std::shared_ptr< IFunction > IFunction_sptr
shared pointer to the function base class
std::shared_ptr< IMDWorkspace > IMDWorkspace_sptr
Shared pointer to the IMDWorkspace base class.
Describes the direction (within an algorithm) of a Property.
@ InOut
Both an input & output workspace.
@ Input
An input workspace.
@ Output
An output workspace.