#include <itkGoodnessOfFitComponentBase.h>
Inheritance diagram for itk::Statistics::GoodnessOfFitComponentBase< TInputSample >:
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.
Recent API changes The typedef for CenterType
and MeanType
has changed to itk::Array from FixedArray and Vector respectively to allow the measurement vector length to be set at run time. The StaticConst macro MeasurementVectorSize
has been removed. It is now obtained from the sample. The typedef for ProjectionAxisArrayType has changed from FixedArray to VariableSizeMatrix.
Definition at line 89 of file itkGoodnessOfFitComponentBase.h.
|
Type of the center position for the hyperspherical neighborhood sampling Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 124 of file itkGoodnessOfFitComponentBase.h. |
|
Reimplemented from itk::Object. Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 97 of file itkGoodnessOfFitComponentBase.h. |
|
Definition at line 117 of file itkGoodnessOfFitComponentBase.h. |
|
Definition at line 116 of file itkGoodnessOfFitComponentBase.h. |
|
Histogram type that will be used for observed and expected histogram Definition at line 115 of file itkGoodnessOfFitComponentBase.h. |
|
TInputSample type alias Definition at line 103 of file itkGoodnessOfFitComponentBase.h. |
|
Type of the mean of the distribution Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 130 of file itkGoodnessOfFitComponentBase.h. Referenced by itk::Statistics::GoodnessOfFitComponentBase< TInputSample >::GetHistogramExtent(). |
|
Typedefs from the TInputSample Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 107 of file itkGoodnessOfFitComponentBase.h. |
|
Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 109 of file itkGoodnessOfFitComponentBase.h. |
|
Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 108 of file itkGoodnessOfFitComponentBase.h. Referenced by itk::Statistics::GoodnessOfFitComponentBase< TInputSample >::GetTotalObservedScale(). |
|
Type of the array of component parameters Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 120 of file itkGoodnessOfFitComponentBase.h. |
|
Reimplemented from itk::Object. Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 96 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 268 of file itkGoodnessOfFitComponentBase.h. |
|
default projection filter type Definition at line 262 of file itkGoodnessOfFitComponentBase.h. |
|
Type of the radius of the hyperspherical neighborhood sampling Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 127 of file itkGoodnessOfFitComponentBase.h. Referenced by itk::Statistics::GoodnessOfFitComponentBase< TInputSample >::GetHistogramExtent(). |
|
Resample() output type Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 112 of file itkGoodnessOfFitComponentBase.h. Referenced by itk::Statistics::GoodnessOfFitComponentBase< TInputSample >::GetHistogramExtent(). |
|
default resampler type and realted types Definition at line 258 of file itkGoodnessOfFitComponentBase.h. |
|
Standard class typedefs Reimplemented from itk::Object. Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 94 of file itkGoodnessOfFitComponentBase.h. |
|
Type of standard deviation of the distribution Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 134 of file itkGoodnessOfFitComponentBase.h. |
|
Reimplemented from itk::Object. Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. Definition at line 95 of file itkGoodnessOfFitComponentBase.h. |
|
|
|
|
|
Calculates the longest axis based on eigen analysis Implemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Creates an empty histogram with bins having same probability based on the distribution parameters |
|
Creates an empty histogram with bins having same interval |
|
Generates the histogram (expected and observed) |
|
Gets the center position for the neighborhood sampling Implemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Gets the probability of x. univariate function Implemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Gets the expected historm |
|
Gest the parameters of this component Implemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Set/Get the overlapping effects extent. Definition at line 170 of file itkGoodnessOfFitComponentBase.h. |
|
Set/Gets the extent of histogram from the mean in terms of standard deivation Definition at line 177 of file itkGoodnessOfFitComponentBase.h. References itk::Statistics::GoodnessOfFitComponentBase< TInputSample >::MeanType, itk::Statistics::GoodnessOfFitComponentBase< TInputSample >::RadiusType, and itk::Statistics::GoodnessOfFitComponentBase< TInputSample >::ResampledSampleType. |
|
Set/Gets the nubmer of bins of histograms (expected and observed) Definition at line 156 of file itkGoodnessOfFitComponentBase.h. |
|
Set/Gets the flag that indicates the probability of each bins in the histograms should be equal. This can be achieved by varying the interval of bins. Definition at line 164 of file itkGoodnessOfFitComponentBase.h. |
|
Set/Gets the input sample |
|
Gets the mean of the distribution Implemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Get Macro to get the length of a measurement vector. This is equal to the length of each measurement vector contained in the samples that are plugged in as input to this class. GetMeasurementVectorSize() will return zero until the SetInputSample() method has been called Referenced by itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >::GetNumberOfParameters(). |
|
Run-time type information (and related methods). Reimplemented from itk::Object. Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Gets the total number of parameters for this component Implemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Gets the observed historm |
|
Set/Gets the component parameters Definition at line 146 of file itkGoodnessOfFitComponentBase.h. |
|
Gets the probability density of measurements. multivariate function Implemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Definition at line 271 of file itkGoodnessOfFitComponentBase.h. |
|
Gets the proportion of this component among multiple components. Definition at line 231 of file itkGoodnessOfFitComponentBase.h. |
|
Gets the radius for the neighborhood sampling Implemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Gets the sampled data set Definition at line 200 of file itkGoodnessOfFitComponentBase.h. |
|
Gest the size of the sampled data set |
|
Gets the standard deviation of the distribution Implemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Gets the total scale of the observed histogram Definition at line 218 of file itkGoodnessOfFitComponentBase.h. References itk::Statistics::GoodnessOfFitComponentBase< TInputSample >::MeasurementVectorType. |
|
Prints component parameters. For debugging 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 >. |
|
Projects measurement vectors onto the projection axis calculated by the CalculateProjectionAxes method. |
|
Samples measurement vectors using the center and radius |
|
Set/Get the overlapping effects extent. |
|
Set/Gets the extent of histogram from the mean in terms of standard deivation |
|
Set/Gets the nubmer of bins of histograms (expected and observed) |
|
Set/Gets the flag that indicates the probability of each bins in the histograms should be equal. This can be achieved by varying the interval of bins. |
|
Set/Gets the input sample Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Set/Gets the component parameters Reimplemented in itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >. |
|
Sets the flag that indicates this component uses the histogram generated with expected distribution from the parameters. |
|
Fills up the expected histogram based on the distribution parameters |