VTK  9.2.6
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 
30 class vtkFunctionParser;
31 class vtkDoubleArray;
32 
33 class VTKFILTERSSTATISTICS_EXPORT vtkKMeansDistanceFunctorCalculator
35 {
36 public:
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 
62  virtual void SetFunctionParser(vtkFunctionParser*);
63  vtkGetObjectMacro(FunctionParser, vtkFunctionParser);
65 
66 protected:
69 
71  int TupleSize;
73 
74 private:
76  void operator=(const vtkKMeansDistanceFunctorCalculator&) = delete;
77 };
78 
79 #endif // vtkKMeansDistanceFunctorCalculator_h
An array holding vtkVariants.
dynamic, self-adjusting array of double
virtual void operator()(double &, vtkVariantArray *, vtkVariantArray *)
Compute the distance from one observation to another, returning the distance in the first argument...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Parse and evaluate a mathematical expression.
a simple class to control print indentation
Definition: vtkIndent.h:39
static vtkKMeansDistanceFunctor * New()
measure distance from k-means cluster centers using a user-specified expression
measure distance from k-means cluster centers