VTK  9.1.0
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
10public:
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
dynamic, self-adjusting array of double
dynamic, self-adjusting array of vtkIdType
bool Initialize(vtkTable *inData, vtkTable *reqModel, vtkKMeansDistanceFunctor *distFunc)
static vtkKMeansAssessFunctor * New()
~vtkKMeansAssessFunctor() override
void operator()(vtkDoubleArray *result, vtkIdType row) override
vtkKMeansAssessFunctor()=default
measure distance from k-means cluster centers
A base class for a functor that assesses data.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:172
int vtkIdType
Definition: vtkType.h:332