|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Model representing a simple linear function: y(x) = b * x + y0. More...
#include <mitkLinearModel.h>


Public Member Functions | |
| Pointer | Clone () const |
| virtual const char * | GetClassName () const |
| ParameterNamesType | GetParameterNames () const override |
| Returns the names of all model parameters. More... | |
| ParametersSizeType | GetNumberOfParameters () const override |
| Returns the number of model parameters (2). More... | |
| ParamterUnitMapType | GetParameterUnits () const override |
| Returns the unit map for model parameters. More... | |
| ParameterNamesType | GetDerivedParameterNames () const override |
| Returns the names of derived parameters. More... | |
| ParametersSizeType | GetNumberOfDerivedParameters () const override |
| Returns the number of derived parameters (1). More... | |
| ParamterUnitMapType | GetDerivedParameterUnits () const override |
| Returns the unit map for derived parameters. More... | |
| ParameterNamesType | GetStaticParameterNames () const override |
| Returns the names of static parameters (empty for this model). More... | |
| ParametersSizeType | GetNumberOfStaticParameters () const override |
| Returns the number of static parameters (0). More... | |
| std::string | GetModelDisplayName () const override |
| Returns the display name "Linear Model". More... | |
| std::string | GetModelType () const override |
| Returns the model type string. More... | |
| FunctionStringType | GetFunctionString () const override |
| Returns the function string representing the model equation. More... | |
| std::string | GetXName () const override |
| Returns the name of the independent variable. More... | |
| std::string | GetXAxisName () const override |
| Returns the x-axis display name. More... | |
| std::string | GetXAxisUnit () const override |
| Returns the x-axis unit. More... | |
| std::string | GetYAxisName () const override |
| Returns the y-axis display name. More... | |
| std::string | GetYAxisUnit () const override |
| Returns the y-axis unit. More... | |
Public Member Functions inherited from mitk::ModelBase | |
| ParamterScaleMapType | GetParameterScales () const override |
| Default implementation returns a scale of 1.0 for every defined parameter. More... | |
| ParamterUnitMapType | GetParameterUnits () const override |
| Default implementation returns no unit string ("") for every defined parameter. More... | |
| DerivedParamterScaleMapType | GetDerivedParameterScales () const override |
| Default implementation returns a scale of 1.0 for every defined derived parameter. More... | |
| DerivedParamterUnitMapType | GetDerivedParameterUnits () const override |
| Default implementation returns no unit string ("") for every defined derived parameter. More... | |
| std::string | GetModelDisplayName () const override |
| Default implementation returns GetClassID as display name. More... | |
| std::string | GetModelType () const override |
| Default implementation returns "Unknown" as model type. More... | |
| FunctionStringType | GetFunctionString () const override |
| Default implementation returns an empty function string. More... | |
| ModellClassIDType | GetClassID () const override |
| Default implementation returns the class name of the concrete instance as ID. More... | |
| std::string | GetXName () const override |
| Default implementation returns an empty string. More... | |
| std::string | GetXAxisName () const override |
| Default implementation returns an empty string. More... | |
| std::string | GetXAxisUnit () const override |
| Default implementation returns an empty string. More... | |
| std::string | GetYAxisName () const override |
| Default implementation returns an empty string. More... | |
| std::string | GetYAxisUnit () const override |
| Default implementation returns an empty string. More... | |
| virtual ParamterUnitMapType | GetStaticParameterUnits () const |
| Default implementation returns no unit string ("") for every defined static parameter. More... | |
| DerivedParameterNamesType | GetDerivedParameterNames () const override |
| Returns the names of derived parameters that can be computed by the model. More... | |
| DerivedParametersSizeType | GetNumberOfDerivedParameters () const override |
| Returns the number of derived parameters that can be computed by the model. More... | |
| void | SetStaticParameters (const StaticParameterMapType ¶meters, bool allParameters=true) |
| Sets the static parameters of the model before it is used. More... | |
| StaticParameterMapType | GetStaticParameters () const |
| Retrieves the static parameters of the model (e.g. for serialization). More... | |
| DerivedParameterMapType | GetDerivedParameters (const ParametersType ¶meters) const |
| Computes all derived parameters for the given model parameters. More... | |
| virtual void | SetTimeGrid (const TimeGridType &grid) |
| Sets the time grid of the model. More... | |
| virtual const TimeGridType & | GetTimeGrid () |
| Gets the time grid of the model. More... | |
| ModelResultType | GetSignal (const ParametersType ¶meters) const |
| Computes and returns the model signal for the given parameters. More... | |
Static Public Member Functions | |
| static Pointer | New () |
Static Public Attributes | |
| static const std::string | NAME_PARAMETER_y0 |
| Name string for the y-intercept parameter ("y-intercept"). More... | |
| static const std::string | NAME_PARAMETER_b |
| Name string for the slope parameter ("slope"). More... | |
| static const unsigned int | NUMBER_OF_PARAMETERS |
| Total number of model parameters (2). More... | |
| static const std::string | UNIT_PARAMETER_y0 |
| Unit of the y-intercept parameter. More... | |
| static const std::string | UNIT_PARAMETER_b |
| Unit of the slope parameter. More... | |
| static const unsigned int | POSITION_PARAMETER_y0 |
| Index position of y-intercept in the parameter vector. More... | |
| static const unsigned int | POSITION_PARAMETER_b |
| Index position of slope in the parameter vector. More... | |
| static const std::string | NAME_DERIVED_PARAMETER_x_intercept |
| Name string for the derived x-intercept parameter. More... | |
| static const unsigned int | NUMBER_OF_DERIVED_PARAMETERS |
| Total number of derived parameters (1). More... | |
| static const std::string | UNIT_DERIVED_PARAMETER_x_intercept |
| Unit of the derived x-intercept parameter. More... | |
| static const unsigned int | NUMBER_OF_STATIC_PARAMETERS |
| Total number of static parameters (0). More... | |
| static const std::string | MODEL_DISPLAY_NAME |
| Display name of this model ("Linear Model"). More... | |
| static const std::string | MODEL_TYPE |
| Type category of this model. More... | |
| static const std::string | FUNCTION_STRING |
| Function string representation of the model equation. More... | |
| static const std::string | X_NAME |
| Name of the independent variable. More... | |
| static const std::string | X_AXIS_NAME |
| Display name for the x-axis. More... | |
| static const std::string | X_AXIS_UNIT |
| Unit for the x-axis. More... | |
| static const std::string | Y_AXIS_NAME |
| Display name for the y-axis. More... | |
| static const std::string | Y_AXIS_UNIT |
| Unit for the y-axis. More... | |
Protected Member Functions | |
| LinearModel () | |
| ~LinearModel () override | |
| LinearModel (const LinearModel &source) | |
| mitkCloneMacro (LinearModel) | |
| ModelResultType | ComputeModelfunction (const ParametersType ¶meters) const override |
| Computes the model function for the given parameters. More... | |
| DerivedParameterMapType | ComputeDerivedParameters (const mitk::ModelBase::ParametersType ¶meters) const override |
| Computes derived parameters from the given model parameters. More... | |
| void | SetStaticParameter (const ParameterNameType &name, const StaticParameterValuesType &values) override |
| Sets a single static parameter by name. More... | |
| StaticParameterValuesType | GetStaticParameterValue (const ParameterNameType &name) const override |
| Retrieves a single static parameter value by name. More... | |
Protected Member Functions inherited from mitk::ModelBase | |
| virtual bool | ValidateModel (std::string &error) const |
| Validates whether the model is in a valid state to compute the signal. More... | |
| ModelBase () | |
| ~ModelBase () override | |
| ModelBase (const ModelBase &source) | |
| void | PrintSelf (std::ostream &os, ::itk::Indent indent) const override |
Protected Member Functions inherited from mitk::ModelTraitsInterface | |
| ModelTraitsInterface () | |
| virtual | ~ModelTraitsInterface () |
Additional Inherited Members | |
Protected Attributes inherited from mitk::ModelBase | |
| TimeGridType | m_TimeGrid |
Model representing a simple linear function: y(x) = b * x + y0.
This model implements a linear relationship between the independent variable x and the dependent variable y. It has two parameters (slope b and intercept y0) and one derived parameter (x-intercept = -y0/b).
Definition at line 33 of file mitkLinearModel.h.
| typedef itk::SmartPointer< const Self > mitk::LinearModel::ConstPointer |
Definition at line 40 of file mitkLinearModel.h.
Definition at line 42 of file mitkLinearModel.h.
Definition at line 43 of file mitkLinearModel.h.
| typedef itk::SmartPointer< Self > mitk::LinearModel::Pointer |
Definition at line 39 of file mitkLinearModel.h.
| typedef LinearModel mitk::LinearModel::Self |
Definition at line 37 of file mitkLinearModel.h.
Definition at line 38 of file mitkLinearModel.h.
|
inlineprotected |
Definition at line 172 of file mitkLinearModel.h.
|
inlineoverrideprotected |
Definition at line 173 of file mitkLinearModel.h.
|
protected |
| Pointer mitk::LinearModel::Clone | ( | ) | const |
|
overrideprotectedvirtual |
Computes derived parameters from the given model parameters.
Helper function called by GetDerivedParameters(). Implement in derived classes to realize the concrete computation of derived parameters.
Reimplemented from mitk::ModelBase.
|
overrideprotectedvirtual |
Computes the model function for the given parameters.
Must be implemented by derived classes.
| parameters | The model parameters. |
Implements mitk::ModelBase.
|
virtual |
Run-time type information (and related methods).
Reimplemented from mitk::ModelBase.
|
overridevirtual |
Returns the names of derived parameters.
Implements mitk::ModelTraitsInterface.
|
overridevirtual |
Returns the unit map for derived parameters.
Implements mitk::ModelTraitsInterface.
|
overridevirtual |
Returns the function string representing the model equation.
Implements mitk::ModelTraitsInterface.
|
overridevirtual |
Returns the display name "Linear Model".
Implements mitk::ModelTraitsInterface.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Returns the names of all model parameters.
Implements mitk::ModelTraitsInterface.
|
overridevirtual |
Returns the unit map for model parameters.
Implements mitk::ModelTraitsInterface.
|
overridevirtual |
Returns the names of static parameters (empty for this model).
Implements mitk::ModelBase.
|
overrideprotectedvirtual |
Retrieves a single static parameter value by name.
Helper function called by GetStaticParameters(). Must be implemented in derived classes.
Implements mitk::ModelBase.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Returns the name of the independent variable.
Implements mitk::ModelTraitsInterface.
|
overridevirtual |
|
overridevirtual |
|
protected |
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Sets a single static parameter by name.
Helper function called by SetStaticParameters(). Must be implemented in derived classes.
Implements mitk::ModelBase.
|
static |
Function string representation of the model equation.
Definition at line 89 of file mitkLinearModel.h.
|
static |
Display name of this model ("Linear Model").
Definition at line 83 of file mitkLinearModel.h.
|
static |
Type category of this model.
Definition at line 86 of file mitkLinearModel.h.
|
static |
Name string for the derived x-intercept parameter.
Definition at line 71 of file mitkLinearModel.h.
|
static |
Name string for the slope parameter ("slope").
Definition at line 55 of file mitkLinearModel.h.
|
static |
Name string for the y-intercept parameter ("y-intercept").
Definition at line 53 of file mitkLinearModel.h.
|
static |
Total number of derived parameters (1).
Definition at line 74 of file mitkLinearModel.h.
|
static |
Total number of model parameters (2).
Definition at line 58 of file mitkLinearModel.h.
|
static |
Total number of static parameters (0).
Definition at line 80 of file mitkLinearModel.h.
|
static |
Index position of slope in the parameter vector.
Definition at line 68 of file mitkLinearModel.h.
|
static |
Index position of y-intercept in the parameter vector.
Definition at line 66 of file mitkLinearModel.h.
|
static |
Unit of the derived x-intercept parameter.
Definition at line 77 of file mitkLinearModel.h.
|
static |
Unit of the slope parameter.
Definition at line 63 of file mitkLinearModel.h.
|
static |
Unit of the y-intercept parameter.
Definition at line 61 of file mitkLinearModel.h.
|
static |
Display name for the x-axis.
Definition at line 95 of file mitkLinearModel.h.
|
static |
Unit for the x-axis.
Definition at line 98 of file mitkLinearModel.h.
|
static |
Name of the independent variable.
Definition at line 92 of file mitkLinearModel.h.
|
static |
Display name for the y-axis.
Definition at line 101 of file mitkLinearModel.h.
|
static |
Unit for the y-axis.
Definition at line 104 of file mitkLinearModel.h.