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>

Inheritance diagram for itk::SingleValuedVnlCostFunctionAdaptor:

Inheritance graph
[legend]
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

Public Methods

 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)

Static Public Methods

void ConvertInternalToExternalParameters (const InternalParametersType &input, ParametersType &output)
void ConvertExternalToInternalParameters (const ParametersType &input, InternalParametersType &output)

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.


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

void itk::SingleValuedVnlCostFunctionAdaptor::ConvertExternalToInternalParameters const ParametersType   input,
InternalParametersType   output
[static]
 

Convert external Parameters into internal type

void itk::SingleValuedVnlCostFunctionAdaptor::ConvertInternalToExternalParameters const InternalParametersType   input,
ParametersType   output
[static]
 

Convert internal Parameters into external 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 65 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 61 of file itkSingleValuedVnlCostFunctionAdaptor.h.


The documentation for this class was generated from the following file:
Generated at Wed Mar 12 01:14:41 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000