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

Method pValue

JSAT/src/jsat/testing/onesample/TTest.java:110–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108 }
109
110 public double pValue()
111 {
112
113 double tScore = (sampleMean - hypothMean)*Math.sqrt(sampleSize)/sampleDev;
114
115 if(h1 == H1.NOT_EQUAL)
116 return tDist.cdf(-Math.abs(tScore))*2;
117 else if(h1 == H1.LESS_THAN)
118 return tDist.cdf(tScore);
119 else
120 return 1-tDist.cdf(tScore);
121 }
122
123}

Callers

nothing calls this directly

Calls 1

cdfMethod · 0.45

Tested by

no test coverage detected