VTK  9.1.0
vtkKMeansDistanceFunctorCalculator.h
Go to the documentation of this file.
1#ifndef vtkKMeansDistanceFunctorCalculator_h
2#define vtkKMeansDistanceFunctorCalculator_h
3
24#include "vtkFiltersStatisticsModule.h" // For export macro
26
28class vtkDoubleArray;
29
30class VTKFILTERSSTATISTICS_EXPORT vtkKMeansDistanceFunctorCalculator
32{
33public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
42 void operator()(double&, vtkVariantArray*, vtkVariantArray*) override;
43
45
48 vtkSetStringMacro(DistanceExpression);
49 vtkGetStringMacro(DistanceExpression);
51
53
60 vtkGetObjectMacro(FunctionParser, vtkFunctionParser);
62
63protected:
66
70
71private:
73 void operator=(const vtkKMeansDistanceFunctorCalculator&) = delete;
74};
75
76#endif // vtkKMeansDistanceFunctorCalculator_h
dynamic, self-adjusting array of double
Parse and evaluate a mathematical expression.
a simple class to control print indentation
Definition: vtkIndent.h:113
measure distance from k-means cluster centers using a user-specified expression
static vtkKMeansDistanceFunctorCalculator * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetFunctionParser(vtkFunctionParser *)
Set/get the string containing an expression which evaluates to the distance metric used for k-means c...
void operator()(double &, vtkVariantArray *, vtkVariantArray *) override
Compute the distance from one observation to another, returning the distance in the first argument.
measure distance from k-means cluster centers
An array holding vtkVariants.