My Project
Public Member Functions
negative_density< graph_t > Class Template Reference

For use in networks with negative edge weights. More...

#include <density.h>

Inheritance diagram for negative_density< graph_t >:
density< graph_t >

List of all members.

Public Member Functions

 negative_density (double param)
double operator() (typename graph_t::edge_name_t win, typename graph_t::edge_name_t wout, lui k) const

Detailed Description

template<typename graph_t>
class negative_density< graph_t >

For use in networks with negative edge weights.

simple_density and complex_density will not work with negative edges. Negative_density will only work with negative edges. (Not entirely true, the communities are senseless if used in an all-positive network)


Constructor & Destructor Documentation

template<typename graph_t >
negative_density< graph_t >::negative_density ( double  param) [inline]

Constructor

Parameters:
paramLambda value to put weight on edge probability

Member Function Documentation

template<typename graph_t >
double negative_density< graph_t >::operator() ( typename graph_t::edge_name_t  win,
typename graph_t::edge_name_t  wout,
lui  k 
) const [inline, virtual]

Calculates a density based on the above numbers.

Parameters:
winSum of weights of edges with both endpoints in cluster
woutSum of weights of edges with exactly one endpoint in cluster
kSize of the cluster
Returns:
(win-wout)/k

Implements density< graph_t >.


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