13 #ifndef mitkTwoStepLinearModel_h
14 #define mitkTwoStepLinearModel_h
47 itkFactorylessNewMacro(
Self);
53 static const std::
string NAME_PARAMETER_y0;
54 static const std::
string NAME_PARAMETER_x0;
55 static const std::
string NAME_PARAMETER_b0;
56 static const std::
string NAME_PARAMETER_b1;
58 static const
unsigned int NUMBER_OF_PARAMETERS;
60 static const std::
string UNIT_PARAMETER_y0;
61 static const std::
string UNIT_PARAMETER_x0;
62 static const std::
string UNIT_PARAMETER_b0;
63 static const std::
string UNIT_PARAMETER_b1;
65 static const
unsigned int POSITION_PARAMETER_y0;
66 static const
unsigned int POSITION_PARAMETER_x0;
67 static const
unsigned int POSITION_PARAMETER_b0;
68 static const
unsigned int POSITION_PARAMETER_b1;
70 static const std::
string NAME_DERIVED_PARAMETER_auc;
71 static const std::
string NAME_DERIVED_PARAMETER_y_fin;
72 static const std::
string NAME_DERIVED_PARAMETER_y_max;
73 static const std::
string NAME_DERIVED_PARAMETER_y1;
75 static const
unsigned int NUMBER_OF_DERIVED_PARAMETERS;
77 static const std::
string UNIT_DERIVED_PARAMETER_auc;
78 static const std::
string UNIT_DERIVED_PARAMETER_y_fin;
79 static const std::
string UNIT_DERIVED_PARAMETER_y_max;
80 static const std::
string UNIT_DERIVED_PARAMETER_y1;
82 static const
unsigned int NUMBER_OF_STATIC_PARAMETERS;
84 static const std::
string MODEL_DISPLAY_NAME;
86 static const std::
string MODEL_TYPE;
88 static const std::
string FUNCTION_STRING;
90 static const std::
string X_NAME;
92 static const std::
string X_AXIS_NAME;
94 static const std::
string X_AXIS_UNIT;
96 static const std::
string Y_AXIS_NAME;
98 static const std::
string Y_AXIS_UNIT;
117 std::
string GetModelDisplayName() const override;
119 std::
string GetModelType() const override;
123 std::
string GetXName() const override;
125 std::
string GetXAxisName() const override;
127 std::
string GetXAxisUnit() const override;
129 std::
string GetYAxisName() const override;
131 std::
string GetYAxisUnit() const override;
144 parameters)
const override;
154 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::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.
Piecewise linear model with two segments joined at a transition point.
StaticParameterValuesType GetStaticParameterValue(const ParameterNameType &name) const override
Retrieves a single static parameter value by name.
itk::SmartPointer< const Self > ConstPointer
static double ComputeSignalFromParameters(double x, double t, double a1, double a2, double b1, double b2)
mitkCloneMacro(TwoStepLinearModel)
Superclass::ParameterNameType ParameterNameType
void SetStaticParameter(const ParameterNameType &name, const StaticParameterValuesType &values) override
Sets a single static parameter by name.
DerivedParameterMapType ComputeDerivedParameters(const mitk::ModelBase::ParametersType ¶meters) const override
Computes derived parameters from the given model parameters.
ModelResultType ComputeModelfunction(const ParametersType ¶meters) const override
Computes the model function for the given parameters.
TwoStepLinearModel(const TwoStepLinearModel &source)
virtual ~TwoStepLinearModel()
itk::SmartPointer< Self > Pointer
Superclass::ParametersSizeType ParametersSizeType
mitk::ModelBase Superclass
Find image slices visible on a given plane.