Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
RF: Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
hoechenberger committed Feb 9, 2015
1 parent 2d98422 commit 2856856
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pphelper/sdt.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def d_prime(hits, false_alarms, n, nafc=1):
The number of trials in target and no-target trials.
nafc : int, optional
The number of alternative choices in the task. A value of ``1``
imples a Yes/No task.
implies a Yes/No task.
Defaults to 1.
Returns
Expand Down Expand Up @@ -65,7 +65,7 @@ def criterion(hits, false_alarms, n, nafc=1):
The number of trials in target and no-target trials.
nafc : int, optional
The number of alternative choices in the task. A value of ``1``
imples a Yes/No task.
implies a Yes/No task.
Defaults to 1.
Returns
Expand All @@ -87,7 +87,7 @@ def criterion(hits, false_alarms, n, nafc=1):
raise NotImplementedError('Only 1-AFC implemented so far.')

hit_rate, fa_rate = _calculate_hit_and_fa_rates(hits, false_alarms, n)
C = -(norm.ppf(hit_rate) + norm.ppf(fa_rate)) / 2
C = -0.5 * (norm.ppf(hit_rate) + norm.ppf(fa_rate))
return C


Expand Down

0 comments on commit 2856856

Please sign in to comment.