VTK
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 : public vtkKMeansDistanceFunctor
34 {
35 public:
38  void PrintSelf( ostream& os, vtkIndent indent ) override;
39 
44  void operator() ( double&, vtkVariantArray*, vtkVariantArray * ) override;
45 
47 
50  vtkSetStringMacro(DistanceExpression);
51  vtkGetStringMacro(DistanceExpression);
53 
55 
61  virtual void SetFunctionParser( vtkFunctionParser* );
62  vtkGetObjectMacro(FunctionParser,vtkFunctionParser);
64 
65 protected:
68 
70  int TupleSize;
72 
73 private:
75  void operator = ( const vtkKMeansDistanceFunctorCalculator& ) = delete;
76 };
77 
78 #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