MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / pdf

Method pdf

JSAT/src/jsat/distributions/StudentT.java:47–55  ·  view source on GitHub ↗
(double t)

Source from the content-addressed store, hash-verified

45
46
47 @Override
48 public double pdf(double t)
49 {
50
51 double leftSide = lnGamma((df+1)/2) - lnGamma(df/2) - lnGamma(df*PI)/2 - log(sig);
52 double rightSide = -(df+1)/2*log(1+pow((t-mu)/sig, 2)/df);
53
54 return exp(leftSide+rightSide);
55 }
56
57
58 @Override

Callers

nothing calls this directly

Calls 4

lnGammaMethod · 0.80
logMethod · 0.80
expMethod · 0.80
powMethod · 0.45

Tested by

no test coverage detected