MCPcopy
hub / github.com/montanaflynn/stats / TestLewData

Function TestLewData

nist_test.go:322–331  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

320}
321
322func TestLewData(t *testing.T) {
323 r, e := stats.Mean(lew)
324 test("Lew Mean", r, -177.435000000000, 1e-15, e, t)
325
326 r, e = stats.StandardDeviationSample(lew)
327 test("Lew Standard Deviation", r, 277.332168044316, 1e-15, e, t)
328
329 r, e = stats.AutoCorrelation(lew, 1)
330 test("Lew AutoCorrelate1", r, -0.307304800605679, 1e-14, e, t)
331}
332
333func TestLotteryData(t *testing.T) {
334 r, e := stats.Mean(lottery)

Callers

nothing calls this directly

Calls 4

MeanFunction · 0.92
StandardDeviationSampleFunction · 0.92
AutoCorrelationFunction · 0.92
testFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…