Skip to content

Commit 91c3eaa

Browse files
authored
Merge pull request #7 from JacobHass8/main
Fixed typo in ccdf and logccdf
2 parents ee5e66c + 758cf5f commit 91c3eaa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/normal/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ def cdf(self, x, *, mu, sigma):
6060
return special.ndtr(z)
6161

6262
def logccdf(self, x, *, mu, sigma):
63-
z = (-x - mu) / sigma
63+
z = -(x - mu) / sigma
6464
return special.log_ndtr(z)
6565

6666
def ccdf(self, x, *, mu, sigma):
67-
z = (-x - mu) / sigma
67+
z = -(x - mu) / sigma
6868
return special.ndtr(z)
6969

7070
def icdf(self, x, *, mu, sigma):

0 commit comments

Comments
 (0)