VTK  9.0.3
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 
27 class vtkFunctionParser;
28 class vtkDoubleArray;
29 
30 class VTKFILTERSSTATISTICS_EXPORT vtkKMeansDistanceFunctorCalculator
32 {
33 public:
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 
63 protected:
66 
68  int TupleSize;
70 
71 private:
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:34
measure distance from k-means cluster centers using a user-specified expression
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkKMeansDistanceFunctorCalculator * New()
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.