Exemplo n.º 1
0
def compute( stats ):
    """Usage: health = compute( outdegree_stats )"""
    if stats['used_size'] == 0:   # No stats could be computed
        return 0.0
    return common.stats2tanh( stats, 'mean', 167.5768 )
Exemplo n.º 2
0
def compute( stats ):
    """Usage: health = compute( indegree_stats )"""
    if stats['used_size'] == 0:   # No stats could be computed
        return 0.0
    return common.stats2tanh( stats, 'mean', 63.0 )   # Should be auto-computed!
Exemplo n.º 3
0
def compute( stats ):
    """Usage: health = compute( activity_sum )"""
    if stats['used_size'] == 0:   # No stats could be computed
        return 0.0
    return common.stats2tanh( stats, 'sum', 11000.0 )
Exemplo n.º 4
0
def compute(stats):
    """Usage: health = compute( activity_sum )"""
    if stats["used_size"] == 0:  # No stats could be computed
        return 0.0
    return common.stats2tanh(stats, "sum", 30000.0)
Exemplo n.º 5
0
def compute(stats):
    """Usage: health = compute( indegree_stats )"""
    if stats["used_size"] == 0:  # No stats could be computed
        return 0.0
    return common.stats2tanh(stats, "mean", 168.39353)