On Sep 23, 3:32 pm, Pablo De Napoli <pden...@gmail.com> wrote: > Hi, > > I'm teaching a probability course right now, and using Sage for doing > some graphics > for my class notes. > I've found that GSL implements a lot of probability distributions that > are not wrapped by Sage. > The problem was reported at > > http://trac.sagemath.org/sage_trac/ticket/11572 > > and a patch is proposed to implement the missing distributions. > > I agree with some of the comments there about the wrong design of the > interface of the class RealDistribution (it is of little help to users > to split things into two different classes for continious and discrete > distributions). >
Good. > Also the name "RealDistribution" is somwhat strange, hard to find and > remember. > Something like ProbabilityDistribution would be more natural. > > Also I think that something like > > ProbabilityDistribution.uniform([a,b]) > > would be more natural than > > T = RealDistribution('uniform', [a, b]) > > And with the method sintax, you would be able to use auto-completion > [TAB key] and avoid the > need to remember the names [and the spelling mistakes] > Any ideas you have for a good long-term solution would be great. Because various probability pieces were only added piecemeal, there was never a unified notation - you'll see other distributions that have nothing to do with GSL elsewhere, for instance. > But I think that the functionallity in this ticket is very useful, and > should be added soon! > Agreed. We welcome next steps! -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To post to this group, send email to sage-devel@googlegroups.com. To unsubscribe from this group, send email to sage-devel+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel?hl=en.