Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

lemur::cluster::SimilarityMethod Class Reference

Generic similarity method. More...

#include <SimilarityMethod.hpp>

Inheritance diagram for lemur::cluster::SimilarityMethod:

lemur::cluster::CosSim List of all members.

Public Member Functions

 SimilarityMethod ()
virtual ~SimilarityMethod ()
virtual void weigh (ClusterRep *vec) const
 Normalize the rep.

virtual double similarity (const ClusterRep *vec1, const ClusterRep *vec2) const =0
 score two vectors.


Detailed Description

Generic similarity method.


Constructor & Destructor Documentation

lemur::cluster::SimilarityMethod::SimilarityMethod  )  [inline]
 

virtual lemur::cluster::SimilarityMethod::~SimilarityMethod  )  [inline, virtual]
 


Member Function Documentation

virtual double lemur::cluster::SimilarityMethod::similarity const ClusterRep vec1,
const ClusterRep vec2
const [pure virtual]
 

score two vectors.

Implemented in lemur::cluster::CosSim.

virtual void lemur::cluster::SimilarityMethod::weigh ClusterRep vec  )  const [inline, virtual]
 

Normalize the rep.

Reimplemented in lemur::cluster::CosSim.


The documentation for this class was generated from the following file:
Generated on Tue Jun 15 11:03:05 2010 for Lemur by doxygen 1.3.4