ANIMA
4.0
|
Base cost function class to handle maximum likelihood estimation. More...
#include <animaBaseMCMCost.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::Array2D< double > | DerivativeMatrixType |
typedef itk::Array< double > | DerivativeType |
typedef MCMType::ListType | ListType |
typedef MCMType::Pointer | MCMPointer |
typedef anima::MultiCompartmentModel | MCMType |
typedef itk::Array< double > | MeasureType |
typedef itk::OptimizerParameters< double > | ParametersType |
typedef itk::SmartPointer< Self > | Pointer |
typedef BaseMCMCost | Self |
typedef itk::LightObject | Superclass |
typedef MCMType::Vector3DType | Vector3DType |
Public Member Functions | |
virtual double | GetCurrentCostValue ()=0 |
For the current set of parameters, compute the cost function value, requires GetValues to be called first. More... | |
virtual void | GetCurrentDerivative (DerivativeMatrixType &derivativeMatrix, DerivativeType &derivative)=0 |
Get cost function derivatives from a derivative matrix obtained from GetDerivativeMatrix. More... | |
virtual void | GetDerivativeMatrix (const ParametersType ¶meters, DerivativeMatrixType &derivative)=0 |
Get residual derivatives for a given set of parameters, returns a matrix of residuals derivatives. More... | |
MCMPointer & | GetMCMStructure () |
virtual const char * | GetNameOfClass () const |
unsigned int | GetNumberOfObservations () const |
unsigned int | GetNumberOfParameters () const |
Returns number of optimized parameters. More... | |
virtual double | GetSigmaSquare () |
virtual MeasureType | GetValues (const ParametersType ¶meters)=0 |
Get residual values for a given set of parameters, returns a vector of residuals. More... | |
void | SetBigDelta (double val) |
void | SetGradients (std::vector< Vector3DType > &value) |
void | SetGradientStrengths (ListType &value) |
void | SetMCMStructure (MCMType *model) |
void | SetObservedSignals (ListType &value) |
void | SetSmallDelta (double val) |
Protected Member Functions | |
BaseMCMCost () | |
virtual | ~BaseMCMCost () |
Protected Attributes | |
double | m_BigDelta |
std::vector< Vector3DType > | m_Gradients |
ListType | m_GradientStrengths |
MCMPointer | m_MCMStructure |
ListType | m_ObservedSignals |
std::vector< double > | m_PredictedSignals |
double | m_SigmaSquare |
double | m_SmallDelta |
ListType | m_TestedParameters |
Base cost function class to handle maximum likelihood estimation.
Definition at line 16 of file animaBaseMCMCost.h.
typedef itk::SmartPointer<const Self> anima::BaseMCMCost::ConstPointer |
Definition at line 23 of file animaBaseMCMCost.h.
typedef itk::Array2D<double> anima::BaseMCMCost::DerivativeMatrixType |
Definition at line 28 of file animaBaseMCMCost.h.
typedef itk::Array<double> anima::BaseMCMCost::DerivativeType |
Definition at line 30 of file animaBaseMCMCost.h.
Definition at line 36 of file animaBaseMCMCost.h.
Definition at line 34 of file animaBaseMCMCost.h.
Definition at line 33 of file animaBaseMCMCost.h.
typedef itk::Array<double> anima::BaseMCMCost::MeasureType |
Definition at line 29 of file animaBaseMCMCost.h.
typedef itk::OptimizerParameters<double> anima::BaseMCMCost::ParametersType |
Definition at line 31 of file animaBaseMCMCost.h.
typedef itk::SmartPointer<Self> anima::BaseMCMCost::Pointer |
Definition at line 22 of file animaBaseMCMCost.h.
typedef BaseMCMCost anima::BaseMCMCost::Self |
Standard class typedefs.
Definition at line 20 of file animaBaseMCMCost.h.
typedef itk::LightObject anima::BaseMCMCost::Superclass |
Definition at line 21 of file animaBaseMCMCost.h.
Definition at line 35 of file animaBaseMCMCost.h.
|
protected |
Definition at line 7 of file animaBaseMCMCost.cxx.
References anima::DiffusionBigDelta, anima::DiffusionSmallDelta, m_BigDelta, m_SigmaSquare, and m_SmallDelta.
|
inlineprotectedvirtual |
Definition at line 78 of file animaBaseMCMCost.h.
|
pure virtual |
For the current set of parameters, compute the cost function value, requires GetValues to be called first.
Implemented in anima::GaussianMCMVariableProjectionCost, and anima::GaussianMCMCost.
|
pure virtual |
Get cost function derivatives from a derivative matrix obtained from GetDerivativeMatrix.
Implemented in anima::GaussianMCMVariableProjectionCost, and anima::GaussianMCMCost.
|
pure virtual |
Get residual derivatives for a given set of parameters, returns a matrix of residuals derivatives.
Implemented in anima::GaussianMCMVariableProjectionCost, and anima::GaussianMCMCost.
|
inline |
Definition at line 43 of file animaBaseMCMCost.h.
Referenced by anima::MCMSingleValuedCostFunction::GetMCMStructure(), and anima::MCMMultipleValuedCostFunction::GetMCMStructure().
|
virtual |
Run-time type information (and related methods).
Reimplemented in anima::GaussianMCMVariableProjectionCost, and anima::GaussianMCMCost.
|
inline |
Definition at line 66 of file animaBaseMCMCost.h.
|
inline |
Returns number of optimized parameters.
Definition at line 58 of file animaBaseMCMCost.h.
|
inlinevirtual |
Definition at line 71 of file animaBaseMCMCost.h.
|
pure virtual |
Get residual values for a given set of parameters, returns a vector of residuals.
Implemented in anima::GaussianMCMVariableProjectionCost, and anima::GaussianMCMCost.
|
inline |
Definition at line 74 of file animaBaseMCMCost.h.
|
inline |
Definition at line 39 of file animaBaseMCMCost.h.
|
inline |
Definition at line 40 of file animaBaseMCMCost.h.
|
inline |
Definition at line 42 of file animaBaseMCMCost.h.
|
inline |
Definition at line 38 of file animaBaseMCMCost.h.
|
inline |
Definition at line 73 of file animaBaseMCMCost.h.
|
protected |
|
protected |
Definition at line 86 of file animaBaseMCMCost.h.
Referenced by anima::GaussianMCMCost::GetDerivativeMatrix(), anima::GaussianMCMCost::GetValues(), anima::GaussianMCMVariableProjectionCost::PrepareDataForDerivative(), anima::GaussianMCMVariableProjectionCost::PrepareDataForLLS(), and anima::GaussianMCMVariableProjectionCost::SolveLinearLeastSquares().
|
protected |
|
protected |
Definition at line 92 of file animaBaseMCMCost.h.
Referenced by anima::GaussianMCMCost::GetDerivativeMatrix(), anima::GaussianMCMCost::GetValues(), anima::GaussianMCMVariableProjectionCost::GetValues(), anima::GaussianMCMVariableProjectionCost::PrepareDataForDerivative(), and anima::GaussianMCMVariableProjectionCost::PrepareDataForLLS().
|
protected |
Definition at line 85 of file animaBaseMCMCost.h.
Referenced by anima::GaussianMCMCost::GetDerivativeMatrix(), anima::GaussianMCMVariableProjectionCost::GetDerivativeMatrix(), anima::GaussianMCMCost::GetValues(), anima::GaussianMCMVariableProjectionCost::PrepareDataForLLS(), and anima::GaussianMCMVariableProjectionCost::SolveLinearLeastSquares().
|
protected |
Definition at line 81 of file animaBaseMCMCost.h.
Referenced by anima::GaussianMCMCost::GetValues().
|
protected |
Definition at line 80 of file animaBaseMCMCost.h.
Referenced by BaseMCMCost(), anima::GaussianMCMCost::GetCurrentCostValue(), anima::GaussianMCMVariableProjectionCost::GetCurrentCostValue(), anima::GaussianMCMCost::GetCurrentDerivative(), anima::GaussianMCMVariableProjectionCost::GetCurrentDerivative(), anima::GaussianMCMCost::GetValues(), and anima::GaussianMCMVariableProjectionCost::SolveLinearLeastSquares().
|
protected |
|
protected |
Definition at line 83 of file animaBaseMCMCost.h.
Referenced by anima::GaussianMCMCost::GetDerivativeMatrix(), anima::GaussianMCMVariableProjectionCost::GetDerivativeMatrix(), anima::GaussianMCMCost::GetValues(), and anima::GaussianMCMVariableProjectionCost::GetValues().