Go to the documentation of this file.
102 #ifndef vtkKMeansStatistics_h
103 #define vtkKMeansStatistics_h
105 #include "vtkFiltersStatisticsModule.h"
133 vtkSetMacro(DefaultNumberOfClusters,
int);
134 vtkGetMacro(DefaultNumberOfClusters,
int);
141 vtkSetStringMacro(KValuesArrayName);
142 vtkGetStringMacro(KValuesArrayName);
150 vtkSetMacro( MaxNumIterations,
int );
151 vtkGetMacro( MaxNumIterations,
int );
159 vtkSetMacro( Tolerance,
double );
160 vtkGetMacro( Tolerance,
double );
212 AssessFunctor*& dfunc )
override;
219 virtual void UpdateClusterCenters(
vtkTable* newClusterElements,
241 int InitializeDataAndClusterCenters(
vtkTable* inParameters,
255 virtual void CreateInitialClusterCenters(
vtkIdType numToAllocate,
void Aggregate(vtkDataObjectCollection *, vtkMultiBlockDataSet *) override
Given a collection of models, calculate aggregate model NB: not implemented.
maintain an unordered list of data objects
A table, which contains similar-typed columns of data.
measure distance from k-means cluster centers
int DefaultNumberOfClusters
This is the default number of clusters used when the user does not provide initial cluster centers.
double Tolerance
This is the percentage of data elements that swap cluster IDs.
Composite dataset that organizes datasets into blocks.
vtkKMeansDistanceFunctor * DistanceFunctor
This is the Distance functor.
char * KValuesArrayName
This is the name of the column that specifies the number of clusters in each run.
int MaxNumIterations
This is the maximum number of iterations allowed if the new cluster centers have not yet converged.
a simple class to control print indentation
dynamic, self-adjusting array of int
A atomic type representing the union of many types.
virtual void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *)=0
Execute the calculations required by the Learn option, given some input Data.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual bool SetParameter(const char *parameter, int index, vtkVariant value)
A convenience method (in particular for access from other applications) to set parameter values of Le...
dynamic, self-adjusting array of vtkIdType
virtual void Assess(vtkTable *, vtkMultiBlockDataSet *, vtkTable *)=0
Execute the calculations required by the Assess option.
virtual void SelectAssessFunctor(vtkTable *outData, vtkDataObject *inMeta, vtkStringArray *rowNames, AssessFunctor *&dfunc)=0
A pure virtual method to select the appropriate assessment functor.
virtual void Derive(vtkMultiBlockDataSet *)=0
Execute the calculations required by the Derive option.
a vtkAbstractArray subclass for strings
A class for KMeans clustering.
dynamic, self-adjusting array of double
Base class for statistics algorithms.
general representation of visualization data
void Test(vtkTable *, vtkMultiBlockDataSet *, vtkTable *) override
Execute the calculations required by the Test option.
static vtkTableAlgorithm * New()