100 #ifndef vtkKMeansStatistics_h
101 #define vtkKMeansStatistics_h
103 #include "vtkFiltersStatisticsModule.h"
131 vtkSetMacro(DefaultNumberOfClusters,
int);
132 vtkGetMacro(DefaultNumberOfClusters,
int);
139 vtkSetStringMacro(KValuesArrayName);
140 vtkGetStringMacro(KValuesArrayName);
148 vtkSetMacro(MaxNumIterations,
int);
149 vtkGetMacro(MaxNumIterations,
int);
157 vtkSetMacro(Tolerance,
double);
158 vtkGetMacro(Tolerance,
double);
183 vtkSetMacro(GhostsToSkip,
unsigned char);
184 vtkGetMacro(GhostsToSkip,
unsigned char);
217 AssessFunctor*& dfunc)
override;
224 virtual void UpdateClusterCenters(
vtkTable* newClusterElements,
vtkTable* curClusterElements,
242 int InitializeDataAndClusterCenters(
vtkTable* inParameters,
vtkTable* inData,
251 virtual void CreateInitialClusterCenters(
vtkIdType numToAllocate,
virtual void Assess(vtkTable *, vtkMultiBlockDataSet *, vtkTable *)=0
Execute the calculations required by the Assess option.
int MaxNumIterations
This is the maximum number of iterations allowed if the new cluster centers have not yet converged...
static vtkTableAlgorithm * New()
maintain an unordered list of data objects
vtkKMeansDistanceFunctor * DistanceFunctor
This is the Distance functor.
int DefaultNumberOfClusters
This is the default number of clusters used when the user does not provide initial cluster centers...
char * KValuesArrayName
This is the name of the column that specifies the number of clusters in each run. ...
a vtkAbstractArray subclass for strings
dynamic, self-adjusting array of vtkIdType
A atomic type representing the union of many types.
dynamic, self-adjusting array of double
void Test(vtkTable *, vtkMultiBlockDataSet *, vtkTable *) override
Execute the calculations required by the Test option.
Base class for statistics algorithms.
dynamic, self-adjusting array of int
double Tolerance
This is the percentage of data elements that swap cluster IDs.
a simple class to control print indentation
A class for KMeans clustering.
virtual void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *)=0
Execute the calculations required by the Learn option, given some input Data.
vtkIdType NumberOfGhosts
Number of ghosts in input data.
virtual void Derive(vtkMultiBlockDataSet *)=0
Execute the calculations required by the Derive option.
A table, which contains similar-typed columns of data.
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...
void Aggregate(vtkDataObjectCollection *, vtkMultiBlockDataSet *) override
Given a collection of models, calculate aggregate model NB: not implemented.
Composite dataset that organizes datasets into blocks.
virtual void SelectAssessFunctor(vtkTable *outData, vtkDataObject *inMeta, vtkStringArray *rowNames, AssessFunctor *&dfunc)=0
A pure virtual method to select the appropriate assessment functor.
general representation of visualization data
measure distance from k-means cluster centers
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
unsigned char GhostsToSkip