18 #ifndef itkConvergenceMonitoringFunction_h
19 #define itkConvergenceMonitoringFunction_h
42 template<
typename TScalar,
typename TEnergyValue>
69 itkDebugMacro(
"Adding energy value " << value );
85 itkDebugMacro(
"Clearing energy values." );
107 os << std::endl <<
"Energy values: " << std::flush;
112 os <<
"(" << it - this->
m_EnergyValues.begin() <<
"): " << *it <<
" ";
typename EnergyValueContainerType::size_type EnergyValueContainerSizeType
Light weight base class for most itk classes.
virtual RealType GetConvergenceValue() const =0
EnergyValueContainerType m_EnergyValues
typename EnergyValueContainerType::const_iterator EnergyValueConstIterator
Define numeric traits for std::vector.
Abstract base class which monitors convergence during the course of optimization. ...
EnergyValueContainerSizeType GetNumberOfEnergyValues() const
typename EnergyValueContainerType::iterator EnergyValueIterator
~ConvergenceMonitoringFunction() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void Modified() const
std::deque< EnergyValueType > EnergyValueContainerType
typename NumericTraits< ScalarType >::RealType RealType
virtual void ClearEnergyValues()
Control indentation during Print() invocation.
ConvergenceMonitoringFunction()
Base class for most ITK classes.
virtual void AddEnergyValue(const EnergyValueType value)