My Project
Public Member Functions | Public Attributes
entropy Class Reference

Entropy measure for cluster similarity. More...

#include <distance.h>

Inheritance diagram for entropy:
dist

List of all members.

Public Member Functions

 entropy ()
template<typename T >
double operator() (T C1, T C2, int N)
double h (double a, double n)

Public Attributes

int N

Detailed Description

Entropy measure for cluster similarity.

Based on information theory.


Constructor & Destructor Documentation

entropy::entropy ( ) [inline]

Constructor


Member Function Documentation

double entropy::h ( double  a,
double  n 
) [inline]

Helper function for entropy calculation

Parameters:
aThe 'positives' or number of good results
nTotal number of possible results
template<typename T >
double entropy::operator() ( C1,
C2,
int  N 
) [inline]

Compute the similarity

Parameters:
C1First cluster to compare
C2Second cluster to compare
NNetwork size (vertices)
Returns:
Entropy measure

Reimplemented from dist.


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