def _drv2_moment(self, n, *args):
 def fun(x):
  return (np.power(x, n) * self._pmf(x, *args))
 return _expect(fun, self.a, self.b, self.ppf(0.5, *args), self.inc)

def _drv2_moment ( self , n , * args ) : def fun ( x ) : return ( np . power ( x , n ) * self . _pmf ( x , * args ) ) return _expect ( fun , self . a , self . b , self . ppf ( 0.5 , * args ) , self . inc )
non-central moment of discrete distribution .