[SciPy-dev] noncentral_chisquare buglet?
Robert Kern
robert.kern at gmail.com
Mon May 19 11:27:31 EDT 2008
On Mon, May 19, 2008 at 7:21 AM, Neal Becker <ndbecker2 at gmail.com> wrote:
> def noncentral_chisquare(self, df, nonc, size=None):
> """Noncentral Chi^2 distribution.
>
> noncentral_chisquare(df, nonc, size=None) -> random values
> """
> cdef ndarray odf, ononc
> cdef double fdf, fnonc
> fdf = PyFloat_AsDouble(df)
> fnonc = PyFloat_AsDouble(nonc)
> if not PyErr_Occurred():
> if fdf <= 1:
> raise ValueError("df <= 0") <<<????
>
> I think this message should be "df <= 1"?
Yup.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the SciPy-Dev
mailing list