File tree 1 file changed +13
-6
lines changed
1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 3
3
import . RFunctions:
4
4
# poispdf,
5
5
# poislogpdf,
6
- poiscdf,
7
- poisccdf,
8
- poislogcdf,
9
- poislogccdf,
6
+ # poiscdf,
7
+ # poisccdf,
8
+ # poislogcdf,
9
+ # poislogccdf,
10
10
poisinvcdf,
11
11
poisinvccdf,
12
12
poisinvlogcdf,
13
13
poisinvlogccdf
14
14
15
- # generic versions
16
15
poispdf (λ:: Real , x:: Real ) = exp (poislogpdf (λ, x))
17
16
18
17
poislogpdf (λ:: T , x:: T ) where {T <: Real } = xlogy (x, λ) - λ - loggamma (x + 1 )
19
-
20
18
poislogpdf (λ:: Real , x:: Real ) = poislogpdf (promote (float (λ), x)... )
19
+
20
+ # Just use the Gamma definitions
21
+ poiscdf (λ:: Real , x:: Real ) = gammaccdf (floor (x + 1 ), 1 , λ)
22
+
23
+ poisccdf (λ:: Real , x:: Real ) = gammacdf (floor (x + 1 ), 1 , λ)
24
+
25
+ poislogcdf (λ:: Real , x:: Real ) = gammalogccdf (floor (x + 1 ), 1 , λ)
26
+
27
+ poislogccdf (λ:: Real , x:: Real ) = gammalogcdf (floor (x + 1 ), 1 , λ)
You can’t perform that action at this time.
0 commit comments