Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EdwardRaff/JSAT
/ pdf
Method
pdf
JSAT/src/jsat/distributions/Beta.java:28–36 ·
view source on GitHub ↗
(double x)
Source
from the content-addressed store, hash-verified
26
}
27
28
@Override
29
public
double pdf(double x)
30
{
31
if
(x <= 0)
32
return
0;
33
else
if
(x >= 1)
34
return
0;
35
return
exp((alpha-1)*log(x)+(beta-1)*log(1-x)-lnBeta(alpha, beta));
36
}
37
38
@Override
39
public
double cdf(double x)
Callers
nothing calls this directly
Calls
3
exp
Method · 0.80
log
Method · 0.80
lnBeta
Method · 0.80
Tested by
no test coverage detected