[SciPy-dev] cdflib wrapper - missing functions?
Sun May 18 16:33:34 CDT 2008
On Sun, May 18, 2008 at 4:22 PM, Neal Becker <firstname.lastname@example.org> wrote:
> I'm interested in cdf for non-central chi-square, to use for r.v.
> generation. I noticed that scipy has cdflib, and I see cdflib has cumchf,
> which seems to be what I want. It looks like cdflib_wrappers.c does not
> expose cumchf?
It's not exposed there because the Cephes library already provides it.
See scipy.special.chndtr*. For random number generation, though, you
should use numpy.random.noncentral_chisquare(). If you want all of
that bundled up into a distribution object, use scipy.stats.ncx2.
"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