Skip to content

Commit

Permalink
Fix ordinal metric (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
grotrek authored and bryant1410 committed Apr 2, 2018
1 parent ef4556d commit b960538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion krippendorff/krippendorff.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def _nominal_metric(v1, v2, **_kwargs):

def _ordinal_metric(_v1, _v2, i1, i2, n_v):
"""Metric for ordinal data."""
return np.sum(n_v[i1:(i2 + 1)]) - (n_v[i1] + n_v[i2]) / 2
return (np.sum(n_v[i1:(i2 + 1)]) - (n_v[i1] + n_v[i2]) / 2) ** 2


def _interval_metric(v1, v2, **_kwargs):
Expand Down

0 comments on commit b960538

Please sign in to comment.