|
My Project
|
Entropy measure for cluster similarity. More...
#include <distance.h>
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 |
Entropy measure for cluster similarity.
Based on information theory.
| entropy::entropy | ( | ) | [inline] |
Constructor
| double entropy::h | ( | double | a, |
| double | n | ||
| ) | [inline] |
Helper function for entropy calculation
| a | The 'positives' or number of good results |
| n | Total number of possible results |
| double entropy::operator() | ( | T | C1, |
| T | C2, | ||
| int | N | ||
| ) | [inline] |
Compute the similarity
| C1 | First cluster to compare |
| C2 | Second cluster to compare |
| N | Network size (vertices) |
Reimplemented from dist.
1.7.6.1