#include <itkWeightedMeanCalculator.h>
Inheritance diagram for itk::Statistics::WeightedMeanCalculator< TSample >:
[NOHEADER] | |
virtual const char * | GetNameOfClass () const |
Pointer | New () |
Public Types | |
typedef WeightedMeanCalculator | Self |
typedef SampleAlgorithmBase< TSample > | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::MeasurementVectorSizeType | MeasurementVectorSizeType |
typedef TSample::MeasurementVectorType | MeasurementVectorType |
typedef Array< double > | OutputType |
typedef Array< double > | WeightArrayType |
typedef FunctionBase< MeasurementVectorType, double > | WeightFunctionType |
Public Member Functions | |
void | SetWeights (WeightArrayType *array) |
WeightArrayType * | GetWeights () |
void | SetWeightFunction (WeightFunctionType *func) |
WeightFunctionType * | GetWeightFunction () |
OutputType * | GetOutput () |
Protected Member Functions | |
WeightedMeanCalculator () | |
virtual | ~WeightedMeanCalculator () |
void | PrintSelf (std::ostream &os, Indent indent) const |
void | GenerateData () |
To run this algorithm, you have plug in the target sample data using SetInputSample method and provides weight by an array or function. . Then call the Update method to run the alogithm.
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.
Definition at line 50 of file itkWeightedMeanCalculator.h.
|
Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >. Definition at line 58 of file itkWeightedMeanCalculator.h. |
|
Length of a measurement vector Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >. Definition at line 66 of file itkWeightedMeanCalculator.h. |
|
Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >. Definition at line 68 of file itkWeightedMeanCalculator.h. |
|
Typedef for the mean output Definition at line 71 of file itkWeightedMeanCalculator.h. Referenced by itk::Statistics::WeightedMeanCalculator< TSample >::~WeightedMeanCalculator(). |
|
Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >. Definition at line 57 of file itkWeightedMeanCalculator.h. |
|
Standard class typedefs. Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >. Definition at line 55 of file itkWeightedMeanCalculator.h. |
|
Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >. Definition at line 56 of file itkWeightedMeanCalculator.h. |
|
Array typedef for weights Definition at line 74 of file itkWeightedMeanCalculator.h. Referenced by itk::Statistics::WeightedMeanCalculator< TSample >::~WeightedMeanCalculator(). |
|
Weight calculation function typedef Definition at line 83 of file itkWeightedMeanCalculator.h. Referenced by itk::Statistics::WeightedMeanCalculator< TSample >::~WeightedMeanCalculator(). |
|
|
|
|
Calculates the mean and save it Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >. |
|
Standard Macros Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >. |
|
Returns the mean vector as the result |
|
Gets the weight function |
|
Gets the weights array |
|
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 >. |
|
Sets the wiehts using an function the function should have a method, Evaluate(MeasurementVectorType&) |
|
Sets the weights using an array |