Section: Visualization Toolkit Infovis Classes
To create an instance of class vtkPKMeansStatistics, simply invoke its constructor as follows
obj = vtkPKMeansStatistics
obj
is an instance of the vtkPKMeansStatistics class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkPKMeansStatistics = obj.NewInstance ()
vtkPKMeansStatistics = obj.SafeDownCast (vtkObject o)
obj.SetController (vtkMultiProcessController )
- Get/Set the multiprocess controller. If no controller is set,
single process is assumed.
vtkMultiProcessController = obj.GetController ()
- Get/Set the multiprocess controller. If no controller is set,
single process is assumed.
obj.UpdateClusterCenters (vtkTable newClusterElements, vtkTable curClusterElements, vtkIdTypeArray numMembershipChanges, vtkIdTypeArray numElementsInCluster, vtkDoubleArray error, vtkIdTypeArray startRunID, vtkIdTypeArray endRunID, vtkIntArray computeRun)
- Subroutine to update new cluster centers from the old centers.
vtkIdType = obj.GetTotalNumberOfObservations (vtkIdType numObservations)
- Subroutine to get the total number of data objects.
obj.CreateInitialClusterCenters (vtkIdType numToAllocate, vtkIdTypeArray numberOfClusters, vtkTable inData, vtkTable curClusterElements, vtkTable newClusterElements)
- Subroutine to initialize cluster centerss if not provided by the user.