scipy.stats.kappa4(h,k) raise a ValueError for positive integer values of h and k #7416
Labels
defect
A clear bug or issue that prevents SciPy from being installed or used as expected
scipy.stats
Milestone
scipy.stats.kappa4(1, 2)
raises a ValueError: "Integers to negative integer powers are not allowed."scipy.stats.kappa4()
requires two shape parameters, h and k.If h and k are both positive integers, then the constructor fails inside
kappa4_gen._argcheck(self, h, k)
, as the functionf0(h, k)
attempts to raise h, an integer, to a negative power (-k).If h is a float with the same value, the call succeeds. Or If k is a float with the same value, the call succeeds.
Reproducing code example:
Error message:
Scipy/Numpy/Python version information:
The text was updated successfully, but these errors were encountered: