|
latest version v1.9 - last update 24 Nov 2005 |
|
#include <ltiCentroidClustering.h>
Inheritance diagram for lti::centroidClustering:


Public Member Functions | |
| centroidClustering () | |
| centroidClustering (const centroidClustering &other) | |
| virtual | ~centroidClustering () |
| virtual const char * | getTypeName () const |
| centroidClustering & | copy (const centroidClustering &other) |
| const parameters & | getParameters () const |
| virtual bool | classify (const dvector &feature, outputVector &result) const |
| const dmatrix & | getCentroids () const |
| virtual bool | train (const dmatrix &input)=0 |
| virtual bool | train (const dmatrix &input, ivector &ids) |
| virtual bool | write (ioHandler &handler, const bool complete=true) const |
| virtual bool | read (ioHandler &handler, const bool complete=true) |
Protected Attributes | |
| dmatrix | centroids |
A classify(const dvector&) method is implemented that should work for most subclasses.
|
|
default constructor
|
|
|
copy constructor
|
|
|
destructor
|
|
||||||||||||
|
classifies a new data point. This method can be used by all centroid classifiers if they properly initialize the classifier::output member. I.e. for each output unit the list of probabilities may contain only one entry with probability one and each id may be used only once. Since the classifier::output expects a probability vector as result from the clustering method, the dissimilarity measure usually returned must be converted to a similarity measure. Here, this is done by first normalizing the vector of dissimilarities, then subtracting this vector from a vector filled with ones and, finally, normalizing the result. This operation yields similarity values between zero and one for arbitrary scales of the feature space. Information about possible reject cases is lost through the first normalizaton, though.
Implements lti::unsupervisedClassifier. |
|
|
copy data of "other" functor.
|
|
|
Returns a const reference to the centroids of the clustering.
|
|
|
returns used parameters
Reimplemented from lti::clustering. Reimplemented in lti::adaptiveKMeans, lti::competitiveAgglomeration, lti::fuzzyCMeans, and lti::kMeansClustering. |
|
|
returns the name of this type ("centroidClustering")
Reimplemented from lti::clustering. Reimplemented in lti::adaptiveKMeans, lti::competitiveAgglomeration, lti::fuzzyCMeans, and lti::kMeansClustering. |
|
||||||||||||
|
read the rbf classifier from the given ioHandler
Reimplemented from lti::classifier. |
|
||||||||||||
|
Calls clustering::train(const dmatrix&, ivector&).
Reimplemented from lti::clustering. Reimplemented in lti::adaptiveKMeans, lti::competitiveAgglomeration, lti::fuzzyCMeans, and lti::kMeansClustering. |
|
|
Declared so it wont be forgotten.
Implements lti::clustering. Implemented in lti::adaptiveKMeans, lti::competitiveAgglomeration, lti::fuzzyCMeans, and lti::kMeansClustering. |
|
||||||||||||
|
write the rbf classifier in the given ioHandler
Reimplemented from lti::classifier. |
|
|
matrix containing the centroids formed by the clustering method
|