00001 #ifndef __vtkKMeansAssessFunctor_h 00002 #define __vtkKMeansAssessFunctor_h 00003 00004 class vtkKMeansAssessFunctor : public vtkStatisticsAlgorithm::AssessFunctor 00005 { 00006 vtkDoubleArray* Distances; 00007 vtkIdTypeArray* ClusterMemberIDs; 00008 int NumRuns; 00009 00010 public: 00011 static vtkKMeansAssessFunctor* New(); 00012 vtkKMeansAssessFunctor() { } 00013 virtual ~vtkKMeansAssessFunctor(); 00014 virtual void operator () ( vtkVariantArray* result, vtkIdType row ); 00015 bool Initialize( vtkTable *inData, vtkTable *reqModel, vtkKMeansDistanceFunctor *distFunc ); 00016 int GetNumberOfRuns() { return NumRuns; } 00017 }; 00018 00019 #endif // __vtkKMeansAssessFunctor_h