VTK
vtkKMeansAssessFunctor.h
Go to the documentation of this file.
1 #ifndef vtkKMeansAssessFunctor_h
2 #define vtkKMeansAssessFunctor_h
3 
5 {
6  vtkDoubleArray* Distances;
7  vtkIdTypeArray* ClusterMemberIDs;
8  int NumRuns;
9 
10 public:
11  static vtkKMeansAssessFunctor* New();
13  ~vtkKMeansAssessFunctor() override;
14  void operator () ( vtkDoubleArray* result, vtkIdType row ) override;
15  bool Initialize( vtkTable *inData, vtkTable *reqModel, vtkKMeansDistanceFunctor *distFunc );
16  int GetNumberOfRuns() { return NumRuns; }
17 };
18 
19 #endif // vtkKMeansAssessFunctor_h
20 // VTK-HeaderTest-Exclude: vtkKMeansAssessFunctor.h
A base class for a functor that assesses data.
static vtkKMeansAssessFunctor * New()
void operator()(vtkDoubleArray *result, vtkIdType row) override
dynamic, self-adjusting array of vtkIdType
int vtkIdType
Definition: vtkType.h:347
dynamic, self-adjusting array of double
bool Initialize(vtkTable *inData, vtkTable *reqModel, vtkKMeansDistanceFunctor *distFunc)
~vtkKMeansAssessFunctor() override
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
measure distance from k-means cluster centers