VTK  9.2.5
vtkKMeansDistanceFunctorCalculator.h
Go to the documentation of this file.
1#ifndef vtkKMeansDistanceFunctorCalculator_h
2#define vtkKMeansDistanceFunctorCalculator_h
3
27#include "vtkFiltersStatisticsModule.h" // For export macro
29
31class vtkDoubleArray;
32
33class VTKFILTERSSTATISTICS_EXPORT vtkKMeansDistanceFunctorCalculator
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
45 void operator()(double&, vtkVariantArray*, vtkVariantArray*) override;
46
48
51 vtkSetStringMacro(DistanceExpression);
52 vtkGetStringMacro(DistanceExpression);
54
56
63 vtkGetObjectMacro(FunctionParser, vtkFunctionParser);
65
66protected:
69
73
74private:
76 void operator=(const vtkKMeansDistanceFunctorCalculator&) = delete;
77};
78
79#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:40
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.