45 DomainType domainType = Simple);
52 void separateCompositeMembersInOutput(
const bool value,
const bool conv =
false);
75 virtual void createDomain(std::shared_ptr<API::FunctionDomain> &domain, std::shared_ptr<API::FunctionValues> &values,
89 virtual std::shared_ptr<API::Workspace>
91 std::shared_ptr<API::FunctionDomain> domain, std::shared_ptr<API::FunctionValues> values,
92 const std::string &outputWorkspacePropertyName =
"OutputWorkspace") {
98 throw std::logic_error(
"Method createOutputWorkspace() isn't implemented");
139#define DECLARE_DOMAINCREATOR(classname) \
141 Mantid::Kernel::RegistrationHelper \
142 register_alg_##classname(((Mantid::API::DomainCreatorFactory::Instance().subscribe<classname>(#classname)), 0)); \
double value
The value of the point.
#define UNUSED_ARG(x)
Function arguments are sometimes unused in certain implmentations but are required for documentation ...
An base class for domain creators for use in Fit.
DomainType
Type of domain to create.
virtual void createDomain(std::shared_ptr< API::FunctionDomain > &domain, std::shared_ptr< API::FunctionValues > &values, size_t i0=0)=0
Create a domain and values from the input workspace.
bool m_convolutionCompositeMembers
Perform convolution of output composite components.
virtual ~IDomainCreator()=default
Virtual destructor.
bool m_outputCompositeMembers
Output separate composite function values.
virtual void initialize(Kernel::IPropertyManager *, const std::string &, DomainType)
Initialize.
std::vector< std::string > m_workspacePropertyNames
Property names for workspaces to get the data from.
Kernel::IPropertyManager * m_manager
Pointer to a property manager.
virtual std::shared_ptr< API::Workspace > createOutputWorkspace(const std::string &baseName, API::IFunction_sptr function, std::shared_ptr< API::FunctionDomain > domain, std::shared_ptr< API::FunctionValues > values, const std::string &outputWorkspacePropertyName="OutputWorkspace")
Create an output workspace filled with data simulated with the fitting function.
bool m_ignoreInvalidData
Flag to ignore nans, infinities and zero errors.
virtual size_t getDomainSize() const =0
Return the size of the domain to be created.
DomainType m_domainType
Domain type.
void ignoreInvalidData(bool yes)
Set to ignore invalid data.
virtual void declareDatasetProperties(const std::string &suffix="", bool addProp=true)
Declare properties that specify the dataset within the workspace to fit to.
Interface to PropertyManager.
Base class for properties.
std::shared_ptr< IFunction > IFunction_sptr
shared pointer to the function base class
std::shared_ptr< IDomainCreator > IDomainCreator_sptr
Typedef for a shared pointer to IDomainCreator.
Helper class which provides the Collimation Length for SANS instruments.