ITK
6.0.0
Insight Toolkit
|
#include <itkGaussianMixtureModelComponent.h>
is a component (derived from MixtureModelComponentBase) for Gaussian class. This class is used in ExpectationMaximizationMixtureModelEstimator.
On every iteration of EM estimation, this class's GenerateData method is called to compute the new distribution parameters.
Recent API changes: The static const macro to get the length of a measurement vector, MeasurementVectorSize
has been removed to allow the length of a measurement vector to be specified at run time. It is now obtained at run time from the sample set as input. Please use the function GetMeasurementVectorSize() to get the length.
Definition at line 51 of file itkGaussianMixtureModelComponent.h.
Public Member Functions | |
void | SetParameters (const ParametersType ¶meters) override |
void | SetSample (const TSample *sample) override |
Public Member Functions inherited from itk::Statistics::MixtureModelComponentBase< TSample > | |
bool | AreParametersModified () |
void | AreParametersModified (bool flag) |
double | Evaluate (MeasurementVectorType &measurements) |
virtual ParametersType | GetFullParameters () |
MembershipFunctionType * | GetMembershipFunction () |
double | GetMinimalParametersChange () |
const char * | GetNameOfClass () const override |
const TSample * | GetSample () const |
double | GetWeight (unsigned int index) const |
virtual const WeightArrayType & | GetWeights () const |
void | SetMinimalParametersChange (double change) |
virtual void | SetParameters (const ParametersType ¶meters) |
virtual void | SetSample (const TSample *sample) |
void | SetWeight (unsigned int index, double value) |
virtual void | Update () |
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 |
const char * | GetNameOfClass () const override |
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 Pointer | CreateAnother () const |
virtual void | Delete () |
virtual const char * | GetNameOfClass () const |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
virtual void | Register () const |
virtual void | SetReferenceCount (int) |
virtual void | UnRegister () const noexcept |
Protected Member Functions | |
double | CalculateParametersChange () |
GaussianMixtureModelComponent () | |
void | GenerateData () override |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~GaussianMixtureModelComponent () override=default | |
Protected Member Functions inherited from itk::Statistics::MixtureModelComponentBase< TSample > | |
virtual void | GenerateData ()=0 |
MixtureModelComponentBase () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
void | SetMembershipFunction (MembershipFunctionType *function) |
~MixtureModelComponentBase () override=default | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
void | PrintSelf (std::ostream &os, Indent indent) const override |
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 | PrintSelf (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Attributes | |
CovarianceEstimatorType::MatrixType | m_Covariance {} |
CovarianceEstimatorType::Pointer | m_CovarianceEstimator {} |
NativeMembershipFunctionType::Pointer | m_GaussianMembershipFunction {} |
MeanEstimatorType::MeasurementVectorType | m_Mean {} |
MeanEstimatorType::Pointer | m_MeanEstimator {} |
const char * | GetNameOfClass () const override |
static Pointer | New () |
Additional Inherited Members | |
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 Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount {} |
using itk::Statistics::GaussianMixtureModelComponent< TSample >::ConstPointer = SmartPointer<const Self> |
Definition at line 58 of file itkGaussianMixtureModelComponent.h.
using itk::Statistics::GaussianMixtureModelComponent< TSample >::CovarianceEstimatorType = WeightedCovarianceSampleFilter<TSample> |
Definition at line 78 of file itkGaussianMixtureModelComponent.h.
using itk::Statistics::GaussianMixtureModelComponent< TSample >::CovarianceMatrixType = typename CovarianceEstimatorType::OutputType |
Type of the covariance matrix
Definition at line 84 of file itkGaussianMixtureModelComponent.h.
using itk::Statistics::GaussianMixtureModelComponent< TSample >::MeanEstimatorType = WeightedMeanSampleFilter<TSample> |
Types of the mean and the covariance calculator that will update this component's distribution parameters
Definition at line 77 of file itkGaussianMixtureModelComponent.h.
using itk::Statistics::GaussianMixtureModelComponent< TSample >::MeanVectorType = typename MeanEstimatorType::OutputType |
Type of the mean vector
Definition at line 81 of file itkGaussianMixtureModelComponent.h.
using itk::Statistics::GaussianMixtureModelComponent< TSample >::NativeMembershipFunctionType = GaussianMembershipFunction<MeasurementVectorType> |
Type of the membership function. Gaussian density function
Definition at line 73 of file itkGaussianMixtureModelComponent.h.
using itk::Statistics::GaussianMixtureModelComponent< TSample >::Pointer = SmartPointer<Self> |
Definition at line 57 of file itkGaussianMixtureModelComponent.h.
using itk::Statistics::GaussianMixtureModelComponent< TSample >::Self = GaussianMixtureModelComponent |
Standard class type aliases.
Definition at line 55 of file itkGaussianMixtureModelComponent.h.
using itk::Statistics::GaussianMixtureModelComponent< TSample >::Superclass = MixtureModelComponentBase<TSample> |
Definition at line 56 of file itkGaussianMixtureModelComponent.h.
|
protected |
|
overrideprotecteddefault |
|
protected |
Returns the sum of squared changes in parameters between iterations
|
overrideprotectedvirtual |
Computes the new distribution parameters
Implements itk::Statistics::MixtureModelComponentBase< TSample >.
|
overridevirtual |
Standard Macros
Reimplemented from itk::Object.
|
static |
Standard Macros
|
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::Object.
|
overridevirtual |
Sets the component's distribution parameters.
Reimplemented from itk::Statistics::MixtureModelComponentBase< TSample >.
|
overridevirtual |
Sets the input sample
Reimplemented from itk::Statistics::MixtureModelComponentBase< TSample >.
|
private |
Definition at line 114 of file itkGaussianMixtureModelComponent.h.
|
private |
Definition at line 118 of file itkGaussianMixtureModelComponent.h.
|
private |
Definition at line 110 of file itkGaussianMixtureModelComponent.h.
|
private |
Definition at line 112 of file itkGaussianMixtureModelComponent.h.
|
private |
Definition at line 116 of file itkGaussianMixtureModelComponent.h.