#include <itkCovarianceCalculator.h>
Inheritance diagram for itk::Statistics::CovarianceCalculator< TSample >:
[NOHEADER] | |
virtual const char * | GetClassName () const |
Pointer | New () |
Public Types | |
typedef CovarianceCalculator | Self |
typedef Object | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef Vector< double, itkGetStaticConstMacro(MeasurementVectorSize) | MeanType ) |
typedef Matrix< double, itkGetStaticConstMacro(MeasurementVectorSize), itkGetStaticConstMacro(MeasurementVectorSize) | OutputType ) |
Public Member Functions | |
itkStaticConstMacro (MeasurementVectorSize, unsigned int, TSample::MeasurementVectorSize) | |
void | SetMean (MeanType *mean) |
MeanType * | GetMean () |
OutputType * | GetOutput () |
Protected Member Functions | |
CovarianceCalculator () | |
virtual | ~CovarianceCalculator () |
void | PrintSelf (std::ostream &os, Indent indent) const |
void | GenerateData () |
void | ComputeCovarianceWithGivenMean () |
void | ComputeCovarianceWithoutGivenMean () |
If there is a mean vector provided by the SetMean method, this calculator will do the caculation as follows: Let denotes covariance matrix for the sample, then: When is th component of a measurement vector , is the th componet of the , and the is the th componet ,
Without the plugged in mean vector, this calculator will perform the single pass mean and covariance calculation algorithm.
Definition at line 45 of file itkCovarianceCalculator.h.
|
Typedef for the mean output Definition at line 63 of file itkCovarianceCalculator.h. |
|
Typedef for the mean output Definition at line 64 of file itkCovarianceCalculator.h. |
|
Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >. Definition at line 52 of file itkCovarianceCalculator.h. |
|
Standard class typedefs. Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >. Definition at line 50 of file itkCovarianceCalculator.h. |
|
Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >. Definition at line 51 of file itkCovarianceCalculator.h. |
|
|
|
|
|
Calculates the covariance matrix using the given mean |
|
Calculates the covariance matrix and the mean in a single pass |
|
Calculates the covariance and save it. This method calls ComputeCovarianceWithGivenMean, if the user provides mean vector using SetMean method. Otherwise, it calls ComputeCovarianceWithoutGivenMethod depending on Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >.
|
|
Standard Macros Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >.
|
|
Returns the sample pointer |
|
Returns the covariance matrix of the target sample data |
|
|
|
Standard Macros Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >.
|
|
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::SampleAlgorithmBase< TSample >.
|
|
Stores the sample pointer |