Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EdwardRaff/JSAT
/ cdf
Method
cdf
JSAT/src/jsat/distributions/discrete/Poisson.java:91–97 ·
view source on GitHub ↗
(int x)
Source
from the content-addressed store, hash-verified
89
}
90
91
@Override
92
public
double cdf(
int
x)
93
{
94
if
(x < 0)
95
return
0;
96
return
gammaQ(x+1, lambda);
97
}
98
99
100
private
double sampleOne(Random rand)
Callers
1
testCdf
Method · 0.95
Calls
1
gammaQ
Method · 0.80
Tested by
1
testCdf
Method · 0.76