MCPcopy 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

expMethod · 0.80
logMethod · 0.80
lnBetaMethod · 0.80

Tested by

no test coverage detected