[SciPy-Dev] doc edit: discrete ppf
nicky van foreest
Mon Feb 6 02:52:43 CST 2012
I don't quite know which parts to review, as I don't know quite how to
figure out what parts you changed.
BTW, while searching for `percent' in
encountered the following text:
We can obtain the list of available distribution through introspection:
>>> dist_continu = [d for d in dir(stats) if
... isinstance(getattr(stats,d), stats.rv_continuous)]
>>> dist_discrete = [d for d in dir(stats) if
... isinstance(getattr(stats,d), stats.rv_discrete)]
>>> print 'number of continuous distributions:', len(dist_continu)
number of continuous distributions: 84
>>> print 'number of discrete distributions: ', len(dist_discrete)
number of discrete distributions: 12
Distributions can be used in one of two ways, either by passing all
distribution parameters to each method call or by freezing the
parameters for the instance of the distribution. As an example, we can
get the median of the distribution by using the percent point
function, ppf, which is the inverse of the cdf:
The sentence ` Distributions can be ...' seems to off-topic here, at
least to me. If is intentionally located at this place, the example of
the ppf is not the way to demonstrate how to freeze the rv.
On 6 February 2012 01:35, <firstname.lastname@example.org> wrote:
> On Sun, Feb 5, 2012 at 6:16 PM, Skipper Seabold <email@example.com> wrote:
>> On Sun, Feb 5, 2012 at 6:07 PM, <firstname.lastname@example.org> wrote:
>>> based on http://projects.scipy.org/scipy/ticket/1421#comment:8
>>> I added an explanation to the stats tutorial for the ppf of discrete
>>> distributions, but I don't quite know how to create a link.
>> I just changed the link, if it's what you meant.
>> `this is the link text
> Sorry, I wasn't clear, I had left this link to figure out how to make
> the link, but the link I wanted is an internal reference to an
> attached rst file just before that
> :ref:`(ppf of discrete random variables) <discrete-ppf>`
> This seems to be working now, but it wasn't before. maybe just some
> processing delay
>> My two go-to reST tutorials.
>>> anyone for review and fixing some rst?
>>> SciPy-Dev mailing list
>> SciPy-Dev mailing list
> SciPy-Dev mailing list
More information about the SciPy-Dev