#include <itkCovarianceCalculator.h>
Inheritance diagram for itk::Statistics::CovarianceCalculator< TSample >:
[NOHEADER] | |
virtual const char * | GetNameOfClass () const |
Pointer | New () |
Public Types | |
typedef CovarianceCalculator | Self |
typedef SampleAlgorithmBase< TSample > | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::MeasurementVectorSizeType | MeasurementVectorSizeType |
typedef Superclass::MeasurementVectorType | MeasurementVectorType |
typedef Array< double > | MeanType |
typedef VariableSizeMatrix< double > | OutputType |
Public Member Functions | |
void | SetMean (MeanType *mean) |
MeanType * | GetMean () |
const OutputType * | GetOutput () const |
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.
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 from the input sample. Please use the function GetMeasurementVectorSize() to obtain the length. The mean output is an Array rather than a Vector. The covariance matrix is represented by a VariableSizeMatrix rather than a Matrix.
Definition at line 53 of file itkCovarianceCalculator.h.
|
Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >. Definition at line 61 of file itkCovarianceCalculator.h. |
|
Typedef for the mean output Definition at line 75 of file itkCovarianceCalculator.h. |
|
Length of a measurement vector Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >. Definition at line 69 of file itkCovarianceCalculator.h. |
|
Measurement vector type Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >. Definition at line 72 of file itkCovarianceCalculator.h. |
|
Typedef for Covariance output Definition at line 78 of file itkCovarianceCalculator.h. |
|
Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >. Definition at line 60 of file itkCovarianceCalculator.h. |
|
Standard class typedefs. Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >. Definition at line 58 of file itkCovarianceCalculator.h. |
|
Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >. Definition at line 59 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 >. |
|
Returns the sample pointer |
|
Standard Macros Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >. |
|
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 |