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


Public Member Functions | |
| mahalanobisDistOfSubset () | |
| mahalanobisDistOfSubset (const mahalanobisDistOfSubset &other) | |
| virtual | ~mahalanobisDistOfSubset () |
| virtual const char * | getTypeName () const |
| virtual void | setSrc (const dmatrix &src, const ivector &srcIds) |
| virtual bool | apply (const std::list< int > &in, double &value) |
| mahalanobisDistOfSubset & | copy (const mahalanobisDistOfSubset &other) |
| mahalanobisDistOfSubset & | operator= (const mahalanobisDistOfSubset &other) |
| virtual functor * | clone () const |
| const parameters & | getParameters () const |
Protected Attributes | |
| list< dmatrix > | clusters |
A great value of this cost function shows well seperated clusters. First, for all points in the data set the mahalanobis distance to each cluster in distribution is computed. Then the result of this costFunction is the average of all these distances. Before you can compute the cost function use the setSrc method to pass the complete data set with all features to this class. Later the features are accessed only by their column number.
|
|
default constructor
|
|
|
copy constructor
|
|
|
destructor
|
|
||||||||||||
|
computes the mahalanobis distance with the given subset of features
Implements lti::costFunction. |
|
|
returns a pointer to a clone of this functor.
Implements lti::functor. |
|
|
copy data of "other" functor.
|
|
|
returns used parameters
Reimplemented from lti::functor. |
|
|
returns the name of this type ("mahalanobisDistOfSubset")
Reimplemented from lti::costFunction. |
|
|
alias for copy member
|
|
||||||||||||
|
Set the src data, that is used for computation. This must be done before apply methods are called. Later each feature can be adressed by its column number, because usually a column represents a feature. Reimplemented from lti::costFunction. |
|
|
A list with each element containing a matrix with one cluster. This list is build from the contructor. |