13 #ifndef mitkTestModel_h
14 #define mitkTestModel_h
46 itkFactorylessNewMacro(
Self);
91 parameters)
const override;
101 void operator=(
const Self&);
#define MITKMODELFIT_EXPORT
Base class for (dynamic) models.
ModelTraitsInterface::ParametersSizeType ParametersSizeType
ModelTraitsInterface::ParameterNamesType ParameterNamesType
std::map< ParameterNameType, DerivedParameterValueType > DerivedParameterMapType
std::vector< StaticParameterValueType > StaticParameterValuesType
ModelTraitsInterface::ParameterNameType ParameterNameType
ModelTraitsInterface::ModelResultType ModelResultType
ModelTraitsInterface::ParametersType ParametersType
std::map< ParameterNameType, double > ParamterScaleMapType
Map type associating parameter names to their scaling factors.
std::string FunctionStringType
Type for the function string representation of the model.
std::map< ParameterNameType, std::string > ParamterUnitMapType
Map type associating parameter names to their unit strings.
Simple linear test model used to verify factory and framework functionality.
ModelResultType ComputeModelfunction(const ParametersType ¶meters) const override
Computes the model function for the given parameters.
ParameterNamesType GetDerivedParameterNames() const override
Returns the names of derived parameters that can be computed by the model.
void SetStaticParameter(const ParameterNameType &name, const StaticParameterValuesType &values) override
Sets a single static parameter by name.
ParametersSizeType GetNumberOfStaticParameters() const override
Returns the number of static parameters.
mitk::ModelBase Superclass
ParamterUnitMapType GetParameterUnits() const override
Default implementation returns no unit string ("") for every defined parameter.
itk::SmartPointer< Self > Pointer
std::string GetYAxisName() const override
Default implementation returns an empty string.
ParametersSizeType GetNumberOfDerivedParameters() const override
Returns the number of derived parameters that can be computed by the model.
ParamterScaleMapType GetParameterScales() const override
Default implementation returns a scale of 1.0 for every defined parameter.
ParametersSizeType GetNumberOfParameters() const override
Returns the number of parameters that must be defined when using the model to compute the signal (Get...
std::string GetYAxisUnit() const override
Default implementation returns an empty string.
ParameterNamesType GetStaticParameterNames() const override
Returns the names of static parameters used when computing the signal.
StaticParameterValuesType GetStaticParameterValue(const ParameterNameType &name) const override
Retrieves a single static parameter value by name.
itk::SmartPointer< const Self > ConstPointer
Superclass::ParametersSizeType ParametersSizeType
std::string GetModelType() const override
Default implementation returns "Unknown" as model type.
DerivedParameterMapType ComputeDerivedParameters(const mitk::ModelBase::ParametersType ¶meters) const override
Computes derived parameters from the given model parameters.
std::string GetModelDisplayName() const override
Default implementation returns GetClassID as display name.
std::string GetXAxisUnit() const override
Default implementation returns an empty string.
ParameterNamesType GetParameterNames() const override
Returns the names of parameters that must be defined when using the model to compute the signal (GetS...
TestModel(const TestModel &other)
std::string GetXName() const override
Default implementation returns an empty string.
FunctionStringType GetFunctionString() const override
Default implementation returns an empty function string.
std::string GetXAxisName() const override
Default implementation returns an empty string.
Superclass::ParameterNameType ParameterNameType
Find image slices visible on a given plane.