#include <itkGaussianGoodnessOfFitComponent.h>
Inheritance diagram for itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >:


Among the GoodnessOfFitComponentBase's methods, this class provides implementations for the CalculateProjectionAxess, the GetCumulativeProbability (univariate CDF), and the GetProbabilityDensity (multivariate PDF)methods.
The CalculateProjectionAxes method creats an array of projection axes that are the eigen vectors generated from the weighted covariance matrix of the resampled sample using a spherical kernel.
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. This is now obtained from the input sample.
Definition at line 51 of file itkGaussianGoodnessOfFitComponent.h.
Public Types | |
| typedef Superclass::CenterType | CenterType |
| typedef SmartPointer< const Self > | ConstPointer |
| typedef WeightedCovarianceCalculator< ResampledSampleType > | CovarianceCalculatorType |
| typedef ProbabilityDensityFunctionType::CovarianceType | CovarianceType |
| typedef Array< double > | EigenValuesArrayType |
| typedef HistogramType::ConstPointer | HistogramConstPointer |
| typedef HistogramType::Pointer | HistogramPointer |
| typedef Histogram< float, 1 > | HistogramType |
| typedef TInputSample | InputSampleType |
| typedef Superclass::MeanType | MeanType |
| typedef TInputSample::MeasurementType | MeasurementType |
| typedef Superclass::MeasurementVectorSizeType | MeasurementVectorSizeType |
| typedef TInputSample::MeasurementVectorType | MeasurementVectorType |
| typedef Array< double > | ParametersType |
| typedef SmartPointer< Self > | Pointer |
| typedef GaussianDensityFunction< MeasurementVectorType > | ProbabilityDensityFunctionType |
| typedef Superclass::ProjectionAxisArrayType | ProjectionAxisArrayType |
| typedef SymmetricEigenAnalysis< ProjectionAxisArrayType, EigenValuesArrayType > | ProjectionAxisCalculatorType |
| typedef Superclass::RadiusType | RadiusType |
| typedef Superclass::ResampledSampleType | ResampledSampleType |
| typedef GaussianGoodnessOfFitComponent | Self |
| typedef Superclass::StandardDeviationType | StandardDeviationType |
| typedef GoodnessOfFitComponentBase< TInputSample > | Superclass |
Public Member Functions | |
| virtual LightObject::Pointer | CreateAnother () const |
| virtual void | CreateHistograms () |
| virtual void | DebugOff () const |
| virtual void | DebugOn () const |
| virtual void | Delete () |
| CenterType * | GetCenter () |
| Command * | GetCommand (unsigned long tag) |
| double | GetCumulativeProbability (double x) const |
| bool | GetDebug () const |
| HistogramType * | GetExpectedHistogram () |
| ParametersType | GetFullParameters () const |
| double | GetHistogramBinOverlap () |
| double | GetHistogramExtent () |
| int | GetHistogramNumberOfBins () |
| bool | GetHistogramUseEquiProbableBins () |
| const TInputSample * | GetInputSample () const |
| MeanType * | GetMean () |
| virtual MeasurementVectorSizeType | GetMeasurementVectorSize () const |
| const MetaDataDictionary & | GetMetaDataDictionary (void) const |
| MetaDataDictionary & | GetMetaDataDictionary (void) |
| virtual unsigned long | GetMTime () const |
| virtual const char * | GetNameOfClass () const |
| unsigned int | GetNumberOfParameters () const |
| HistogramType * | GetObservedHistogram () |
| ParametersType * | GetParameters () |
| double | GetProbabilityDensity (MeasurementVectorType &measurements) const |
| virtual double | GetProportion () const |
| RadiusType * | GetRadius () |
| virtual int | GetReferenceCount () const |
| ResampledSampleType * | GetResampledSample () |
| virtual unsigned int | GetResampledSampleSize () |
| StandardDeviationType * | GetStandardDeviation () |
| double * | GetTotalObservedScale () |
| bool | HasObserver (const EventObject &event) const |
| Set Gets the nubmer of bins of | histograms (expected and observed)*/void SetHistogramNumberOfBins(int numberOfBins) |
| void | InvokeEvent (const EventObject &) const |
| void | InvokeEvent (const EventObject &) |
| virtual void | Modified () const |
| void | Print (std::ostream &os, Indent indent=0) const |
| void | PrintParameters (std::ostream &os) const |
| virtual void | Project (int projectionAxisIndex) |
| virtual void | Register () const |
| void | RemoveAllObservers () |
| void | RemoveObserver (unsigned long tag) |
| virtual void | Resample () |
| void | SetDebug (bool debugFlag) const |
| Set Get the overlapping effects extent *void | SetHistogramBinOverlap (double overlap) |
| Set Gets the extent of histogram from the mean in terms of *standard deivation *void | SetHistogramExtent (double extent) |
| 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 *void | SetHistogramUseEquiProbableBins (bool flag) |
| virtual void | SetInputSample (const TInputSample *sample) |
| void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
| void | SetParameters (const ParametersType ¶meter) |
| virtual void | SetReferenceCount (int) |
| void | SetUseExpectedHistogram (bool flag) |
| virtual void | UnRegister () const |
| virtual void | UpdateExpectedHistogram () |
Static Public Member Functions | |
| static void | BreakOnError () |
| static bool | GetGlobalWarningDisplay () |
| static void | GlobalWarningDisplayOff () |
| static void | GlobalWarningDisplayOn () |
| static Pointer | New () |
| This is a global flag that controls whether any warning *or error messages are displayed *static void | SetGlobalWarningDisplay (bool flag) |
Public Attributes | |
| Allow people to add remove invoke observers(callbacks) to any ITK *object.This is an implementation of the subject/observer design *pattern.An observer is added by specifying an event to respond to *and an itk unsigned lon | AddObserver )(const EventObject &event, Command *) const |
| This is a global flag that controls whether any | debug |
Protected Types | |
| typedef SampleToHistogramProjectionFilter< ResampledSampleType, float > | ProjectorType |
| typedef NeighborhoodSampler< TInputSample > | ResamplerType |
Protected Member Functions | |
| virtual void | CalculateProjectionAxes () |
| virtual void | CreateEquiProbableBins () |
| virtual void | CreateEquiRangeBins () |
| GaussianGoodnessOfFitComponent () | |
| ProjectionAxisArrayType * | GetProjectionAxes () |
| bool | PrintObservers (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 | ~GaussianGoodnessOfFitComponent () |
Protected Attributes | |
| int | m_ReferenceCount |
| SimpleFastMutexLock | m_ReferenceCountLock |
| Methods invoked by virtual 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.*/virtual void PrintSelf(std voi | PrintHeader )(std::ostream &os, Indent indent) const |
|
|||||
|
Typedefs from Superclass Reimplemented from itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. Definition at line 74 of file itkGaussianGoodnessOfFitComponent.h. |
|
|||||
|
Reimplemented from itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. Definition at line 59 of file itkGaussianGoodnessOfFitComponent.h. |
|
|||||
|
Type of the covariance calculator. the output of this calculator is a covariance matrix that is used as the input of the Projection calculator Definition at line 94 of file itkGaussianGoodnessOfFitComponent.h. |
|
|||||
|
Definition at line 88 of file itkGaussianGoodnessOfFitComponent.h. |
|
|||||
|
Default projection axis calculator type. Definition at line 97 of file itkGaussianGoodnessOfFitComponent.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 100 of file itkGoodnessOfFitComponentBase.h. |
|
|||||
|
Type of the mean of the distribution Reimplemented from itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. Definition at line 76 of file itkGaussianGoodnessOfFitComponent.h. |
|
|||||
|
Typedefs from input sample Reimplemented from itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. Definition at line 66 of file itkGaussianGoodnessOfFitComponent.h. |
|
|||||
|
Reimplemented from itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. Definition at line 80 of file itkGaussianGoodnessOfFitComponent.h. |
|
|||||
|
Reimplemented from itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. Definition at line 71 of file itkGaussianGoodnessOfFitComponent.h. |
|
|||||
|
Type of the array of component parameters Reimplemented from itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. Definition at line 81 of file itkGaussianGoodnessOfFitComponent.h. |
|
|||||
|
Reimplemented from itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. Definition at line 58 of file itkGaussianGoodnessOfFitComponent.h. |
|
|||||
|
Weight function type. The density values are used as weights of each instance (measurement vector) for the Covariance calulator Definition at line 86 of file itkGaussianGoodnessOfFitComponent.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 from itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. Definition at line 79 of file itkGaussianGoodnessOfFitComponent.h. |
|
|||||
|
Definition at line 99 of file itkGaussianGoodnessOfFitComponent.h. |
|
|||||
|
default projection filter type Definition at line 262 of file itkGoodnessOfFitComponentBase.h. |
|
|||||
|
Type of the radius of the hyperspherical neighborhood sampling Reimplemented from itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. Definition at line 75 of file itkGaussianGoodnessOfFitComponent.h. |
|
|||||
|
Resample() output type Reimplemented from itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. Definition at line 78 of file itkGaussianGoodnessOfFitComponent.h. |
|
|||||
|
default resampler type and realted types Definition at line 258 of file itkGoodnessOfFitComponentBase.h. |
|
|||||
|
Standard class typedefs Reimplemented from itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. Definition at line 56 of file itkGaussianGoodnessOfFitComponent.h. |
|
|||||
|
Type of standard deviation of the distribution Reimplemented from itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. Definition at line 77 of file itkGaussianGoodnessOfFitComponent.h. |
|
|||||
|
Reimplemented from itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. Definition at line 57 of file itkGaussianGoodnessOfFitComponent.h. |
|
|||||||||
|
|
|
|||||||||
|
|
|
|
This method is called when itkExceptionMacro executes. It allows the debugger to break on error. |
|
|||||||||
|
Calculates the base axes for projection Implements itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. |
|
|
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class. Reimplemented from itk::LightObject. |
|
|||||||||
|
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) |
|
|
Turn debugging output off. |
|
|
Turn debugging output on. |
|
|
Delete an itk object. This method should always be used to delete an object when the new operator was used to create it. Using the C delete method will not work with reference counting. |
|
|||||||||
|
Gets the center point for the neighborhood sampling Implements itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. |
|
|
Get the command associated with the given tag. NOTE: This returns a pointer to a Command, but it is safe to asign this to a Command::Pointer. Since Command inherits from LightObject, at this point in the code, only a pointer or a reference to the Command can be used. |
|
||||||||||
|
Univariate (standard) cumulative probability function Implements itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. |
|
|
Get the value of the debug flag. |
|
|||||||||
|
Gets the expected historm |
|
|||||||||
|
Gets the full distribution parameters which consists of mean vector and covariance matrix in a single array Implements itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. |
|
|
|
|
|||||||||
|
Definition at line 170 of file itkGoodnessOfFitComponentBase.h. |
|
|||||||||
|
Definition at line 177 of file itkGoodnessOfFitComponentBase.h. |
|
|||||||||
|
Definition at line 156 of file itkGoodnessOfFitComponentBase.h. |
|
|||||||||
|
Definition at line 164 of file itkGoodnessOfFitComponentBase.h. |
|
|||||||||
|
|
|
|||||||||
|
Gets the mean of the distributon Implements itk::Statistics::GoodnessOfFitComponentBase< 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::Statistics::GoodnessOfFitComponentBase< TInputSample >. |
|
||||||||||
|
Gets the size of parameters which consists of mean and standard deviation Implements itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. Definition at line 103 of file itkGaussianGoodnessOfFitComponent.h. References itk::Statistics::GoodnessOfFitComponentBase< TInputSample >::GetMeasurementVectorSize(). |
|
|||||||||
|
Gets the observed historm |
|
||||||||||
|
Definition at line 146 of file itkGoodnessOfFitComponentBase.h. |
|
||||||||||
|
Multivariate probability density function Implements itk::Statistics::GoodnessOfFitComponentBase< 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 Implements itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. |
|
|
Gets the reference count on this object. Definition at line 98 of file itkLightObject.h. |
|
|||||||||
|
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 Implements itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. |
|
|||||||||
|
Gets the total scale of the observed histogram Definition at line 218 of file itkGoodnessOfFitComponentBase.h. |
|
|
Definition at line 100 of file itkObject.h. References itk::Object::SetGlobalWarningDisplay(). |
|
|
Definition at line 98 of file itkObject.h. References itk::Object::SetGlobalWarningDisplay(). |
|
|
Return true if an observer is registered for this event. |
|
||||||||||
|
|
|
|
Call Execute on all the Commands observing this event id. The actions triggered by this call doesn't modify this object. |
|
|
Call Execute on all the Commands observing this event id. |
|
|
|||||||||
|
Method for creation through the object factory. Reimplemented from itk::Object. |
|
||||||||||||
|
Cause the object to print itself out. |
|
||||||||||||
|
|
|
||||||||||
|
Prints all the parameters. Usually for debugging. Implements itk::Statistics::GoodnessOfFitComponentBase< 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::Statistics::GoodnessOfFitComponentBase< TInputSample >. |
|
||||||||||||
|
|
|
||||||||||
|
Projects measurement vectors onto the projection axis calculated by the CalculateProjectionAxes method. |
|
|
Increase the reference count (mark as used by another object). Reimplemented from itk::LightObject. |
|
|
Remove all observers . |
|
|
Remove the observer with this tag value. |
|
|||||||||
|
Samples measurement vectors using the center and radius |
|
|
Set the value of the debug flag. A non-zero value turns debugging on. |
|
|
Referenced by itk::Object::GlobalWarningDisplayOff(), and itk::Object::GlobalWarningDisplayOn(). |
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
Set the input sample Reimplemented from itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. |
|
|
|
|
||||||||||
|
Sets the component distribution parameters Reimplemented from itk::Statistics::GoodnessOfFitComponentBase< TInputSample >. |
|
|
Sets the reference count (use with care) Reimplemented from itk::LightObject. |
|
||||||||||
|
Sets the flag that indicates this component uses the histogram generated with expected distribution from the parameters. |
|
|
Decrease the reference count (release by another object). Reimplemented from itk::LightObject. |
|
|||||||||
|
Fills up the expected histogram based on the distribution parameters |
|
|
|
|
|
Definition at line 94 of file itkObject.h. |
|
|
Number of uses of this object by other objects. Definition at line 119 of file itkLightObject.h. |
|
|
Mutex lock to protect modification to the reference count Definition at line 122 of file itkLightObject.h. |
|
|
|
1.4.2 written by Dimitri van Heesch,
© 1997-2000