18 #ifndef itkConvergenceMonitoringFunction_h
19 #define itkConvergenceMonitoringFunction_h
42 template<
typename TScalar,
typename TEnergyValue>
68 itkDebugMacro(
"Adding energy value " << value );
84 itkDebugMacro(
"Clearing energy values." );
106 os << std::endl <<
"Energy values: " << std::flush;
111 os <<
"(" << it - this->
m_EnergyValues.begin() <<
"): " << *it <<
" ";
~ConvergenceMonitoringFunction() override
virtual RealType GetConvergenceValue() const =0
EnergyValueContainerType::size_type EnergyValueContainerSizeType
EnergyValueContainerType m_EnergyValues
Abstract base class which monitors convergence during the course of optimization. ...
NumericTraits< ScalarType >::RealType RealType
EnergyValueContainerType::const_iterator EnergyValueConstIterator
EnergyValueContainerSizeType GetNumberOfEnergyValues() const
SmartPointer< const Self > ConstPointer
TEnergyValue EnergyValueType
ConvergenceMonitoringFunction Self
virtual void Modified() const
virtual void ClearEnergyValues()
Control indentation during Print() invocation.
virtual void PrintSelf(std::ostream &os, Indent indent) const override
ConvergenceMonitoringFunction()
Define additional traits for native types such as int or float.
Base class for most ITK classes.
EnergyValueContainerType::iterator EnergyValueIterator
virtual void PrintSelf(std::ostream &os, Indent indent) const override
std::deque< EnergyValueType > EnergyValueContainerType
SmartPointer< Self > Pointer
virtual void AddEnergyValue(const EnergyValueType value)