Navigation Menu

Skip to content

Commit

Permalink
Improved CDistance brief
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Aug 23, 2011
1 parent 9f349fd commit 2e88999
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions src/shogun/distance/Distance.h
Expand Up @@ -53,9 +53,30 @@ enum EDistanceType
};


/** @brief class Distance
/** @brief Class Distance, a base class for all the distances used in
* the Shogun toolbox.
*
* All distance classes are derived from this base class. */
* The distance (or metric) is a function
* \f$ d: X \times X \to R \f$ satisfying (for all \f$ x,y,z \in X\f$) conditions below:
* - \f$ d(x,y) \geq 0 \f$
*
* - \f$ d(x,y) = 0\f$ if and only if \f$ x=y\f$
*
* - \f$ d(x,y) = d(y,x) \f$
*
* - \f$ d(x,y) \leq d(x,z) + d(z,y) \f$
*
* Note that the metric function have generalizations of quasimetrics,
* pseudometrics, semimetrics and premetrics also permitted as
* subclasses of the class.
*
* The simpliest example of a distance function is the euclidian
* distance: @see CEuclidianDistance
*
* In the means of Shogun toolbox the distance function is defined
* on the 'space' of CFeatures.
*
*/
class CDistance : public CSGObject
{
public:
Expand Down

0 comments on commit 2e88999

Please sign in to comment.