Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::SingleValuedVnlCostFunctionAdaptor Class Reference
[NumericsOptimizers]

This class is an Adaptor that allows to pass itk::SingleValuedCostFunctions to vnl_optimizers expecting a vnl_cost_function. More...

#include <itkSingleValuedVnlCostFunctionAdaptor.h>

Collaboration diagram for itk::SingleValuedVnlCostFunctionAdaptor:

Collaboration graph
[legend]
List of all members.

Public Types

typedef vnl_vector< double > InternalParametersType
typedef double InternalMeasureType
typedef vnl_vector< double > InternalDerivativeType
typedef SingleValuedCostFunction::ParametersType ParametersType
typedef SingleValuedCostFunction::DerivativeType DerivativeType
typedef Array< double > ScalesType

Public Member Functions

 SingleValuedVnlCostFunctionAdaptor (unsigned int spaceDimension)
void SetCostFunction (SingleValuedCostFunction *costFunction)
const SingleValuedCostFunctionGetCostFunction (void) const
virtual InternalMeasureType f (const InternalParametersType &inparameters)
virtual void gradf (const InternalParametersType &inparameters, InternalDerivativeType &gradient)
virtual void compute (const InternalParametersType &x, InternalMeasureType *f, InternalDerivativeType *g)
void ConvertExternalToInternalGradient (const DerivativeType &input, InternalDerivativeType &output)
void SetScales (const ScalesType &scales)

Detailed Description

This class is an Adaptor that allows to pass itk::SingleValuedCostFunctions to vnl_optimizers expecting a vnl_cost_function.

This class returns a single valued.

Definition at line 36 of file itkSingleValuedVnlCostFunctionAdaptor.h.


Member Typedef Documentation

typedef SingleValuedCostFunction::DerivativeType itk::SingleValuedVnlCostFunctionAdaptor::DerivativeType
 

Derivatives of the SingleValuedCostFunction

Definition at line 54 of file itkSingleValuedVnlCostFunctionAdaptor.h.

typedef vnl_vector<double> itk::SingleValuedVnlCostFunctionAdaptor::InternalDerivativeType
 

InternalGradientType typedef.

Definition at line 48 of file itkSingleValuedVnlCostFunctionAdaptor.h.

typedef double itk::SingleValuedVnlCostFunctionAdaptor::InternalMeasureType
 

InternalMeasureType typedef.

Definition at line 45 of file itkSingleValuedVnlCostFunctionAdaptor.h.

typedef vnl_vector<double> itk::SingleValuedVnlCostFunctionAdaptor::InternalParametersType
 

InternalParametersType typedef.

Definition at line 42 of file itkSingleValuedVnlCostFunctionAdaptor.h.

typedef SingleValuedCostFunction::ParametersType itk::SingleValuedVnlCostFunctionAdaptor::ParametersType
 

Parameters of the SingleValuedCostFunction

Definition at line 51 of file itkSingleValuedVnlCostFunctionAdaptor.h.

typedef Array<double> itk::SingleValuedVnlCostFunctionAdaptor::ScalesType
 

Scales typedef

Definition at line 57 of file itkSingleValuedVnlCostFunctionAdaptor.h.


Constructor & Destructor Documentation

itk::SingleValuedVnlCostFunctionAdaptor::SingleValuedVnlCostFunctionAdaptor unsigned int  spaceDimension  ) 
 

Constructor with size


Member Function Documentation

virtual void itk::SingleValuedVnlCostFunctionAdaptor::compute const InternalParametersType x,
InternalMeasureType f,
InternalDerivativeType g
[virtual]
 

Delegate computation of value and gradient to the costFunction.

void itk::SingleValuedVnlCostFunctionAdaptor::ConvertExternalToInternalGradient const DerivativeType input,
InternalDerivativeType output
 

Convert external derviative measures into internal type

virtual InternalMeasureType itk::SingleValuedVnlCostFunctionAdaptor::f const InternalParametersType inparameters  )  [virtual]
 

Delegate computation of the value to the CostFunction.

const SingleValuedCostFunction* itk::SingleValuedVnlCostFunctionAdaptor::GetCostFunction void   )  const [inline]
 

Get the CostFunction deriving from SingleValuedCostFunction

Definition at line 67 of file itkSingleValuedVnlCostFunctionAdaptor.h.

virtual void itk::SingleValuedVnlCostFunctionAdaptor::gradf const InternalParametersType inparameters,
InternalDerivativeType gradient
[virtual]
 

Delegate computation of the gradient to the costFunction.

void itk::SingleValuedVnlCostFunctionAdaptor::SetCostFunction SingleValuedCostFunction costFunction  )  [inline]
 

Set the CostFunction deriving from SingleValuedCostFunction

Definition at line 63 of file itkSingleValuedVnlCostFunctionAdaptor.h.

void itk::SingleValuedVnlCostFunctionAdaptor::SetScales const ScalesType scales  ) 
 

Set current parameters scaling.


The documentation for this class was generated from the following file:
Generated at Wed Mar 30 01:23:00 2005 for ITK by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2000