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  virtual ~vtkKMeansAssessFunctor();
14  virtual void operator () ( vtkVariantArray* result, vtkIdType row );
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
An array holding vtkVariants.
static vtkKMeansAssessFunctor * New()
dynamic, self-adjusting array of vtkIdType
int vtkIdType
Definition: vtkType.h:275
virtual ~vtkKMeansAssessFunctor()
dynamic, self-adjusting array of double
virtual void operator()(vtkVariantArray *result, vtkIdType row)
bool Initialize(vtkTable *inData, vtkTable *reqModel, vtkKMeansDistanceFunctor *distFunc)
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:67
measure distance from k-means cluster centers