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

Method cdf

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

Source from the content-addressed store, hash-verified

56
57
58 @Override
59 public double cdf(double t)
60 {
61 double x = df/(df + pow((t-mu)/sig, 2));
62
63 double p = betaIncReg(x, df/2, 0.5)/2;
64
65 if( t > mu)
66 return 1 - p;
67 else
68 return p;
69 }
70
71 @Override
72 public double invCdf(double p)

Callers

nothing calls this directly

Calls 2

betaIncRegMethod · 0.80
powMethod · 0.45

Tested by

no test coverage detected