ITK
6.0.0
Insight Toolkit
|
#include <itkCumulativeGaussianCostFunction.h>
Cost function for the Cumulative Gaussian Optimizer.
The Cumulative Gaussian is defined as the integral of a normalized Gaussian over the domain \( [-\infty, \infty] \).
Definition at line 51 of file itkCumulativeGaussianCostFunction.h.
Public Member Functions | |
double | CalculateFitError (MeasureType *setTestArray) |
double | EvaluateCumulativeGaussian (double argument) const |
void | GetDerivative (const ParametersType &, DerivativeType &) const override |
const char * | GetNameOfClass () const override |
unsigned int | GetNumberOfParameters () const override |
unsigned int | GetNumberOfValues () const override |
MeasureType | GetValue (const ParametersType ¶meters) const override |
MeasureType * | GetValuePointer (ParametersType ¶meters) |
void | Initialize (unsigned int rangeDimension) |
void | SetOriginalDataArray (MeasureType *setOriginalDataArray) |
Public Member Functions inherited from itk::MultipleValuedCostFunction | |
virtual void | GetDerivative (const ParametersType ¶meters, DerivativeType &derivative) const =0 |
const char * | GetNameOfClass () const override |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
LightObject::Pointer | CreateAnother () const override |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) const |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexcept override |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
Pointer | Clone () const |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Protected Member Functions | |
CumulativeGaussianCostFunction () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~CumulativeGaussianCostFunction () override | |
Protected Member Functions inherited from itk::MultipleValuedCostFunction | |
MultipleValuedCostFunction ()=default | |
~MultipleValuedCostFunction () override | |
Protected Member Functions inherited from itk::CostFunctionTemplate< TInternalComputationValueType > | |
CostFunctionTemplate ()=default | |
~CostFunctionTemplate () override=default | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Attributes | |
MeasureType | m_Measure {} |
MeasureType | m_MeasurePointer {} |
MeasureType | m_OriginalDataArray {} |
ParametersType | m_Parameters {} |
unsigned int | m_RangeDimension { 0 } |
Additional Inherited Members | |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount {} |
using itk::CumulativeGaussianCostFunction::ConstPointer = SmartPointer<const Self> |
Definition at line 58 of file itkCumulativeGaussianCostFunction.h.
using itk::CumulativeGaussianCostFunction::DerivativeType = Superclass::DerivativeType |
Definition at line 69 of file itkCumulativeGaussianCostFunction.h.
using itk::CumulativeGaussianCostFunction::MeasureType = Superclass::MeasureType |
Definition at line 68 of file itkCumulativeGaussianCostFunction.h.
using itk::CumulativeGaussianCostFunction::ParametersType = Superclass::ParametersType |
Array Typedefs.
Definition at line 67 of file itkCumulativeGaussianCostFunction.h.
Definition at line 57 of file itkCumulativeGaussianCostFunction.h.
Standard type alias.
Definition at line 55 of file itkCumulativeGaussianCostFunction.h.
Definition at line 56 of file itkCumulativeGaussianCostFunction.h.
anonymous enum |
The dimensions of parameter space; mean, standard deviation, lower and upper asymptotes.
Enumerator | |
---|---|
SpaceDimension |
Definition at line 73 of file itkCumulativeGaussianCostFunction.h.
|
protected |
|
overrideprotected |
double itk::CumulativeGaussianCostFunction::CalculateFitError | ( | MeasureType * | setTestArray | ) |
Calculate a fit error between the data and the fit curve.
double itk::CumulativeGaussianCostFunction::EvaluateCumulativeGaussian | ( | double | argument | ) | const |
Given the argument of a Cumulative Gaussian, return its value.
|
inlineoverride |
Not necessary for this optimizer.
Definition at line 80 of file itkCumulativeGaussianCostFunction.h.
|
overridevirtual |
Reimplemented from itk::CostFunctionTemplate< TInternalComputationValueType >.
|
overridevirtual |
Get the SpaceDimension.
Implements itk::CostFunctionTemplate< TInternalComputationValueType >.
|
overridevirtual |
Get the number Range Dimension.
Implements itk::MultipleValuedCostFunction.
|
overridevirtual |
Return the values evaluated for the given parameters.
Implements itk::MultipleValuedCostFunction.
MeasureType* itk::CumulativeGaussianCostFunction::GetValuePointer | ( | ParametersType & | parameters | ) |
Return a pointer of values evaluated for the given parameters.
void itk::CumulativeGaussianCostFunction::Initialize | ( | unsigned int | rangeDimension | ) |
Initialize the arrays.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::CostFunctionTemplate< TInternalComputationValueType >.
void itk::CumulativeGaussianCostFunction::SetOriginalDataArray | ( | MeasureType * | setOriginalDataArray | ) |
Set the original data array.
|
mutableprivate |
Different arrays.
Definition at line 130 of file itkCumulativeGaussianCostFunction.h.
|
mutableprivate |
Definition at line 131 of file itkCumulativeGaussianCostFunction.h.
|
private |
The original data array.
Definition at line 124 of file itkCumulativeGaussianCostFunction.h.
|
mutableprivate |
Definition at line 132 of file itkCumulativeGaussianCostFunction.h.
|
private |
Number of data samples.
Definition at line 127 of file itkCumulativeGaussianCostFunction.h.