Skip to content

Commit 4e2e2e9

Browse files
authored
Update binary.py
Fixed error in true_negative_rate()
1 parent 545746e commit 4e2e2e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

medpy/metric/binary.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,19 +270,19 @@ def specificity(result, reference):
270270
def true_negative_rate(result, reference):
271271
"""
272272
True negative rate.
273-
Same as :func:`sensitivity`, see there for a detailed description.
273+
Same as :func:`specificity`, see there for a detailed description.
274274
275275
See also
276276
--------
277277
:func:`true_positive_rate`
278278
:func:`positive_predictive_value`
279279
"""
280-
return sensitivity(result, reference)
280+
return specificity(result, reference)
281281

282282
def true_positive_rate(result, reference):
283283
"""
284284
True positive rate.
285-
Same as :func:`recall`, see there for a detailed description.
285+
Same as :func:`recall` and :func:`sensitivity`, see there for a detailed description.
286286
287287
See also
288288
--------

0 commit comments

Comments
 (0)