[SciPy-user] Strange discontinuity in noncentral chisquare
Thu May 28 13:52:15 CDT 2009
On Thu, May 28, 2009 at 12:56, Neal Becker <email@example.com> wrote:
> def pmiss2 (x, esnodB, N):
> esno = 10**(0.1 * esnodB) * N
> var = 1/esno
> _lambda = 1/(0.5*var)
> return ncx2.cdf (x, 2, _lambda)
> x = np.arange (0, 50, 0.1)
> p1 = [pmiss2 (e, 3.5, 24) for e in x]
> What's with this strange discontinuity?
> print p1:
Dunno. The CDF is just scipy.special.chndtr(), so you will have to
dive through its code to see what's up. Between 22.3 and 22.4 is
probably where the code changes from one approximation to another.
"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-user