#include <itkGoodnessOfFitComponentBase.h>
Inheritance diagram for itk::Statistics::GoodnessOfFitComponentBase:
Public Types | |
typedef GoodnessOfFitComponentBase | Self |
typedef Object | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef TInputSample | InputSampleType |
typedef TInputSample::MeasurementType | MeasurementType |
typedef TInputSample::MeasurementVectorType | MeasurementVectorType |
typedef Subsample< TInputSample > | ResampledSampleType |
typedef Histogram< float, 1 > | HistogramType |
typedef Array< double > | ParametersType |
typedef FixedArray< double, itkGetStaticConstMacro(MeasurementVectorSize) | CenterType ) |
typedef Vector< double, itkGetStaticConstMacro(MeasurementVectorSize) | MeanType ) |
typedef double | RadiusType |
typedef double | StandardDeviationType |
Public Methods | |
virtual const char * | GetClassName () const |
itkStaticConstMacro (MeasurementVectorSize, unsigned int, TInputSample::MeasurementVectorSize) | |
virtual void | SetInputSample (TInputSample *sample) |
TInputSample * | GetInputSample () |
virtual unsigned int | GetNumberOfParameters () const=0 |
virtual void | SetParameters (const ParametersType ¶meters) |
ParametersType * | GetParameters () |
void | SetUseExpectedHistogram (bool flag) |
void | SetHistogramNumberOfBins (int numberOfBins) |
int | GetHistogramNumberOfBins () |
void | SetHistogramUseEquiProbableBins (bool flag) |
bool | GetHistogramUseEquiProbableBins () |
void | SetHistogramBinOverlap (double overlap) |
double | GetHistogramBinOverlap () |
void | SetHistogramExtent (double extent) |
double | GetHistogramExtent () |
virtual CenterType * | GetCenter ()=0 |
virtual RadiusType * | GetRadius ()=0 |
virtual MeanType * | GetMean ()=0 |
virtual RadiusType * | GetStandardDeviation ()=0 |
virtual void | CreateHistograms () |
virtual void | Resample () |
ResampledSampleType * | GetResampledSample () |
virtual unsigned int | GetResampledSampleSize () |
virtual void | CalculateProjectionAxes ()=0 |
virtual void | Project (int projectionAxisIndex) |
virtual void | UpdateExpectedHistogram () |
double * | GetTotalObservedScale () |
virtual double | GetCumulativeProbability (double x) const=0 |
virtual double | GetProbabilityDensity (MeasurementVectorType &measurements) const=0 |
virtual double | GetProportion () const |
HistogramType * | GetObservedHistogram () |
HistogramType * | GetExpectedHistogram () |
virtual void | PrintParameters (std::ostream &os) const=0 |
virtual ParametersType | GetFullParameters () const=0 |
Protected Types | |
typedef NeighborhoodSampler< TInputSample > | ResamplerType |
typedef SampleToHistogramProjectionFilter< ResampledSampleType, float > | ProjectorType |
typedef FixedArray< double, itkGetStaticConstMacro(MeasurementVectorSize) | ProjectionAxisType ) |
typedef FixedArray< ProjectionAxisType, itkGetStaticConstMacro(MeasurementVectorSize) | ProjectionAxisArrayType ) |
Protected Methods | |
GoodnessOfFitComponentBase () | |
virtual | ~GoodnessOfFitComponentBase () |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
ProjectionAxisArrayType * | GetProjectionAxes () |
virtual void | CreateEquiRangeBins () |
virtual void | CreateEquiProbableBins () |
This defines common iterfaces for each subclasses and provides common functionalities across different types of components (e.g. GaussianGoodnessOfFitComponent)
The primary role of a GoodnessOfFitComponent is to create an 1D histogram (called an observed histogram ) of the input sample after resampling the input using spherical kernel and projecting the resampled sample along base axes, and to create corresponding 1D histogram (expected histogram) that has the same histogram configuration as the observed histogram but has the expected frequencies from the given component parameters.
You can set up the two histograms' configuration by calling SetHistogramNumberOfBins, SetHistogramUseEquiProbableBins, SetHistogramBingOverlap, SetHistogramExtent. After you change the histogram configuration, call the CreateHistograms method to allocate histograms. If you set the UseExpectedHistogram flag to false by callsing SetUseExpectedHistogram(false), the CreateHistograms method won't create the expected histogram. The decision should be made by the GoodnessOfFitFunction object that will be plugged-in to the GoodnessOfFitMixtureModelCostFunction. So the method shouldn't be called manually.
This base class provides default implementations for the resampling and projection using helper classes (NeighborhoodSampler, SampleToHistogramProjectionFilter).
To determine the base axis, call the CalculateProjectionAxes method. each subclass should implement it.
Another group of functions includes probability function such as GetProbabilityDensity(MeasurementVectorType) multivariate probability density function of the subclass GetCumulativeProbability(MeasurementType) univariate cumulative probabilty function
To see how all this methods are used in order, take a look at the implementation of the GetValue method of the GoodnessOfFitMixtureModelCostFunction class.
Definition at line 80 of file itkGoodnessOfFitComponentBase.h.
|
Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 109 of file itkGoodnessOfFitComponentBase.h. |
|
Reimplemented from itk::Object. Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 88 of file itkGoodnessOfFitComponentBase.h. |
|
Histogram type that will be used for observed and expected histogram Definition at line 104 of file itkGoodnessOfFitComponentBase.h. |
|
Definition at line 93 of file itkGoodnessOfFitComponentBase.h. |
|
Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 110 of file itkGoodnessOfFitComponentBase.h. |
|
Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 96 of file itkGoodnessOfFitComponentBase.h. |
|
Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 97 of file itkGoodnessOfFitComponentBase.h. |
|
Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 106 of file itkGoodnessOfFitComponentBase.h. |
|
Reimplemented from itk::Object. Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 87 of file itkGoodnessOfFitComponentBase.h. |
|
projection axis array type. The type of output from CalculateProjectionAxis(). The number of projection axis are fixed equal to the number of components of a measurement vector Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 211 of file itkGoodnessOfFitComponentBase.h. |
|
projection axis array type. The type of output from CalculateProjectionAxis(). The number of projection axis are fixed equal to the number of components of a measurement vector Definition at line 208 of file itkGoodnessOfFitComponentBase.h. |
|
default projection filter type Definition at line 201 of file itkGoodnessOfFitComponentBase.h. |
|
Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 111 of file itkGoodnessOfFitComponentBase.h. |
|
Resample() output type Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 100 of file itkGoodnessOfFitComponentBase.h. |
|
default resampler type and realted types Definition at line 197 of file itkGoodnessOfFitComponentBase.h. |
|
Standard class typedefs Reimplemented from itk::Object. Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 85 of file itkGoodnessOfFitComponentBase.h. |
|
Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 112 of file itkGoodnessOfFitComponentBase.h. |
|
Reimplemented from itk::Object. Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 86 of file itkGoodnessOfFitComponentBase.h. |
|
|
|
|
|
Implemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
|
|
|
|
|
|
Implemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Run-time type information (and related methods). Reimplemented from itk::Object. Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Implemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
|
|
Implemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Definition at line 139 of file itkGoodnessOfFitComponentBase.h. |
|
Definition at line 144 of file itkGoodnessOfFitComponentBase.h. |
|
Definition at line 129 of file itkGoodnessOfFitComponentBase.h. |
|
Definition at line 134 of file itkGoodnessOfFitComponentBase.h. |
|
|
|
Implemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Implemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
accessing methods for the projected sample |
|
Definition at line 122 of file itkGoodnessOfFitComponentBase.h. |
|
Implemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Definition at line 214 of file itkGoodnessOfFitComponentBase.h. |
|
Definition at line 179 of file itkGoodnessOfFitComponentBase.h. |
|
Implemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Definition at line 159 of file itkGoodnessOfFitComponentBase.h. |
|
|
|
Implemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Definition at line 170 of file itkGoodnessOfFitComponentBase.h. |
|
Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Implemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
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. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
|
|
|