vtkKMeansDistanceFunctor

Section: Visualization Toolkit Infovis Classes

Usage

This is an abstract class (with a default concrete subclass) that implements algorithms used by the vtkKMeansStatistics filter that rely on a distance metric. If you wish to use a non-Euclidean distance metric (this could include working with strings that do not have a Euclidean distance metric, implementing k-mediods, or trying distance metrics in norms other than L2), you should subclass vtkKMeansDistanceFunctor.

To create an instance of class vtkKMeansDistanceFunctor, simply invoke its constructor as follows

  obj = vtkKMeansDistanceFunctor

Methods

The class vtkKMeansDistanceFunctor has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, obj is an instance of the vtkKMeansDistanceFunctor class.