Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkLinearModel.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef __MITK_LINEAR_MODEL_H_
14 #define __MITK_LINEAR_MODEL_H_
15 
16 #include "mitkModelBase.h"
17 
18 #include "MitkModelFitExports.h"
19 
20 namespace mitk
21 {
22 
24  {
25 
26  public:
27  typedef LinearModel Self;
31 
34 
36  itkFactorylessNewMacro(Self);
37  itkCloneMacro(Self);
38 
40  itkTypeMacro(LinearModel, ModelBase);
41 
42  std::string GetModelDisplayName() const override;
43 
44  std::string GetModelType() const override;
45 
46  FunctionStringType GetFunctionString() const override;
47 
48  std::string GetXName() const override;
49 
50  ParameterNamesType GetParameterNames() const override;
51 
52  ParametersSizeType GetNumberOfParameters() const override;
53 
54  ParameterNamesType GetStaticParameterNames() const override;
55 
56  ParametersSizeType GetNumberOfStaticParameters() const override;
57 
58  ParameterNamesType GetDerivedParameterNames() const override;
59 
60  ParametersSizeType GetNumberOfDerivedParameters() const override;
61 
62  protected:
64  ~LinearModel() override {};
65 
70  itk::LightObject::Pointer InternalClone() const override;
71 
72  ModelResultType ComputeModelfunction(const ParametersType& parameters) const override;
73  DerivedParameterMapType ComputeDerivedParameters(const mitk::ModelBase::ParametersType&
74  parameters) const override;
75 
76  void SetStaticParameter(const ParameterNameType& name,
77  const StaticParameterValuesType& values) override;
78  StaticParameterValuesType GetStaticParameterValue(const ParameterNameType& name) const override;
79 
80  private:
81 
82  //No copy constructor allowed
83  LinearModel(const Self& source);
84  void operator=(const Self&); //purposely not implemented
85 
86  };
87 }
88 
89 #endif
Base class for (dynamic) models. A model can be used to calculate its signal given the discrete time ...
Definition: mitkModelBase.h:47
ModelTraitsInterface::ParametersType ParametersType
Definition: mitkModelBase.h:59
DataCollection - Class to facilitate loading/accessing structured data.
itk::SmartPointer< Self > Pointer
#define MITKMODELFIT_EXPORT
ModelTraitsInterface::ParametersSizeType ParametersSizeType
Definition: mitkModelBase.h:65
std::vector< StaticParameterValueType > StaticParameterValuesType
Definition: mitkModelBase.h:71
std::map< ParameterNameType, DerivedParameterValueType > DerivedParameterMapType
Definition: mitkModelBase.h:75
mitk::ModelBase Superclass
ModelTraitsInterface::ModelResultType ModelResultType
Definition: mitkModelBase.h:55
~LinearModel() override
ModelTraitsInterface::ParameterNameType ParameterNameType
Definition: mitkModelBase.h:63
ModelTraitsInterface::ParameterNamesType ParameterNamesType
Definition: mitkModelBase.h:64
Superclass::ParameterNameType ParameterNameType
itk::SmartPointer< const Self > ConstPointer
Superclass::ParametersSizeType ParametersSizeType