Skip to content

Commit

Permalink
BUG: stats.distributions: _drv method was broken.
Browse files Browse the repository at this point in the history
Observed in doc build output, but apparently not covered by a test.
  • Loading branch information
rgommers committed Feb 3, 2014
1 parent c44d500 commit 431da70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scipy/stats/_distn_infrastructure.py
Original file line number Diff line number Diff line change
Expand Up @@ -2228,12 +2228,12 @@ def _drv_nonzero(self, k, *args):

def _drv_moment(self, n, *args):
n = asarray(n)
return sum(self.xk**n[newaxis,...] * self.pk, axis=0)
return sum(self.xk**n[np.newaxis,...] * self.pk, axis=0)


def _drv_moment_gen(self, t, *args):
t = asarray(t)
return sum(exp(self.xk * t[newaxis,...]) * self.pk, axis=0)
return sum(exp(self.xk * t[np.newaxis,...]) * self.pk, axis=0)


def _drv2_moment(self, n, *args):
Expand Down

0 comments on commit 431da70

Please sign in to comment.