Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

SimilarityMethod Class Reference

Generic similarity method. More...

#include <SimilarityMethod.hpp>

Inheritance diagram for SimilarityMethod:

CosSim List of all members.

Public Methods

 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

SimilarityMethod::SimilarityMethod   [inline]
 

virtual SimilarityMethod::~SimilarityMethod   [inline, virtual]
 


Member Function Documentation

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

score two vectors.

Implemented in CosSim.

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

Normalize the rep.

Reimplemented in CosSim.


The documentation for this class was generated from the following file:
Generated on Wed Nov 3 12:59:55 2004 for Lemur Toolkit by doxygen1.2.18