[Scipy-tickets] [SciPy] #1507: scipy.stats.rv_generic.rvs Discrete Distribution Rounding Bug

SciPy Trac scipy-tickets@scipy....
Fri Sep 2 14:35:47 CDT 2011

#1507: scipy.stats.rv_generic.rvs Discrete Distribution Rounding Bug
  Reporter:  bestephe     |       Owner:  somebody   
      Type:  defect       |      Status:  closed     
  Priority:  normal       |   Milestone:  Unscheduled
 Component:  scipy.stats  |     Version:  0.9.0      
Resolution:  invalid      |    Keywords:             
Changes (by josefpktd):

  * status:  needs_review => closed
  * resolution:  => invalid


 It's not a bug, it's by design

 rv_discrete are distribution on integers only. It doesn't work on
 arbitrary floating points. I tried to extend it, but a large part of the
 machinery of rv_discrete relies completely on integers.

 If you just want rvs, then the numpy enhancement pull request by
 Christopher Jordan-Squire, or my recent mailing list example does it.

 Designing a discrete class on floats quite a bit of work.

 I'm closing it as invalid since it's not a defect. If someone writes a
 discrete float class it would be a very useful enhancement.

Ticket URL: <http://projects.scipy.org/scipy/ticket/1507#comment:2>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.

More information about the Scipy-tickets mailing list