-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathComplementarity.cs
27 lines (26 loc) · 1.03 KB
/
Complementarity.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using MNCD.Core;
namespace MNCD.Evaluation.MultiLayer
{
/// <summary>
/// Implements complementarity measure.
/// Finding Redundant and Complementary Communities in Multidimensional Networks
/// http://www.michelecoscia.com/wp-content/uploads/2012/08/cosciacikm11.pdf
/// Michele Berlingerio, Michele Coscia, Fosca Giannotti.
/// </summary>
public static class Complementarity
{
/// <summary>
/// Conjuction of variety, exclusivity and homogenity.
/// </summary>
/// <param name="community">Community for which complementarity will be computed.</param>
/// <param name="network">Network in which community resides.</param>
/// <returns>Complementary value for community.</returns>
public static double Compute(Community community, Network network)
{
return
Variety.Compute(community, network) *
Exclusivity.Compute(community, network) *
Homogenity.Compute(community, network);
}
}
}