Skip to content

Commit

Permalink
disparity, inequality ranking gini in top 100 (not top0)
Browse files Browse the repository at this point in the history
  • Loading branch information
lisette-espin committed Apr 29, 2023
1 parent 240ce87 commit 5e37255
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
in social networks.
"""

__version__ = '1.0.6'
__version__ = '1.0.7'

from netin import generators
from netin.generators import *
Expand Down
2 changes: 1 addition & 1 deletion netin/stats/ranking.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def get_ranking_inequality(ys: np.array) -> float:
float
The Gini coefficient of the entire distribution (at op-100%).
"""
gini_global = ys[0] # top-100%
gini_global = ys[-1] # top-100%
return gini_global


Expand Down

0 comments on commit 5e37255

Please sign in to comment.