My Project
Public Member Functions | Public Attributes
Compare Class Reference

Set of cluster comparisons. More...

#include <compare.h>

Inheritance diagram for Compare:
BestMatch FScore Interaction KCenter NMI

List of all members.

Public Member Functions

virtual double operator() (vector< set< string > > *Cl1, vector< set< string > > *Cl2)
CompareProduce (string s)
void setDist (string s)
 Compare ()
 Compare (int size)
int getNodes (vector< set< string > > *Cl1, vector< set< string > > *Cl2)

Public Attributes

double graphSize
distd

Detailed Description

Set of cluster comparisons.

Classes to compare sets of clusters


Constructor & Destructor Documentation

Compare::Compare ( ) [inline]

Empty Constructor

Compare::Compare ( int  size) [inline]

Alternate Constructor

Parameters:
sizenetwork size

Member Function Documentation

int Compare::getNodes ( vector< set< string > > *  Cl1,
vector< set< string > > *  Cl2 
) [inline]

Get the set of nodes in the union of the two sets of clusters

Parameters:
Cl1Cluster set 1
Cl2Cluster set 2
Returns:
Number of nodes in union
virtual double Compare::operator() ( vector< set< string > > *  Cl1,
vector< set< string > > *  Cl2 
) [inline, virtual]

Compute Comparison

Parameters:
Cl1Cluster set 1
Cl2Cluster set 2
dDistance measure between two single clusters to use

Reimplemented in NMI, FScore, Interaction, KCenter, and BestMatch.

Compare * Compare::Produce ( string  s)

Factory function

Parameters:
sWhich comparison procedure to use

Factory function for overall list similarity

Parameters:
sType of comparison class to produce
void Compare::setDist ( string  s) [inline]

Initialize the distance metric

Parameters:
sType of distance to use

Reimplemented in KCenter.


Member Data Documentation

Size of network in vertices


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs