Status: Accepted
Owner: mrock...@gmail.com
CC: nathan.f...@gmail.com
Labels: Type-Defect Priority-Medium Statistics

New issue 3090 by mrock...@gmail.com: Create ContinuousDensity class
http://code.google.com/p/sympy/issues/detail?id=3090

Currently densities of continuous random expressions are represented as a tuple of (variable, density) where variable is the active/free variable in the density expression. This representation is a bit unintuitive and should be replaced with something like a function
Currently

x, density = Density(expr)
print "Probability density at 3: ", density.subs(x, 3)

We would like to have
pdf = Density(expr)
print "Probability density at 3: ", pdf(3)

There is a current class, Lambda that can do this fairly well. Alternatively we may want to subclass something so that we can add additional functionality. In particular
1) cleaner printing
2) verification that the pdf integrates to 1

Because this is a change to the interface it would be good to get this in before the next release cycle.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to