WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Question about using function (https://forum.worldviz.com/showthread.php?t=2509)

hankiwan 02-08-2010 07:09 PM

Question about using function
 
I have a question that how to use a function scipy.stats.rv_continuous.ppf in SciPy package v0.7.

In SciPy Reference Guide, there is description as below.

rv_continuous.ppf(q, *args, **kwds)
Percent point function (inverse of cdf) at q of the given RV.

Parameters:
q : array-like, lower tail probability
arg1, arg2, arg3,... : array-like, The shape parameter(s) for the distribution (see docstring of the instance object for more information)
loc : array-like, optional, location parameter (default=0)
scale : array-like, optional, scale parameter (default=1)

Returns:
x : array-like, quantile corresponding to the lower tail probability q.


I have just started to learn Vizard (Python).
Could you please explain what are *args and **kwds mean? (Do * and ** have additional mean?)
I am confused that what types of parameters are required for using a function rv_continuous.ppf.
If I could get illustrating with examples, it will be a great help to me.

Best regards.

Jeff 02-15-2010 10:50 AM

the following link explains *args and **kw

http://pythonfilter.com/blog/what-do...args-mean.html


All times are GMT -7. The time now is 04:45 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC