Rev 2073 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | !if $wims_read_parm!=slib_header |
2 | !goto proc |
||
3 | !endif |
||
4 | slib_title=cumulative distribution function of Poisson law |
||
5 | slib_parms=2\ |
||
6 | ,[data]\ |
||
7 | |||
8 | |||
9 | 1,p |
||
10 | |||
11 | slib_author=Bernadette PERRIN-RIOU |
||
12 | slib_out=values on data of the cumulative distribution function of the Poisson law of parameter p |
||
13 | slib_comment=data can be a list of reals |
||
14 | slib_example=[2,4,7],6.1 |
||
15 | !exit |
||
16 | |||
17 | :proc |
||
18 | |||
19 | !distribute item $wims_read_parm into slib_data,slib_p |
||
20 | |||
21 | !default slib_N=1000 |
||
22 | !if $slib_p<=0 |
||
23 | slib_out=0 |
||
24 | !exit |
||
25 | !endif |
||
26 | |||
27 | slib_data=!declosing $slib_data |
||
28 | slib_cnt=!itemcnt $slib_data |
||
29 | slib_out=!exec pari slib_data=[$slib_data];\ |
||
30 | print(vector($slib_cnt, x,if(slib_data[x] >= 0, incgam(floor(slib_data[x])+1,$slib_p)/gamma(floor(slib_data[x])+1)))) |
||
31 | |||
32 | slib_out=!trim $slib_out |