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

Function TestLotteryData

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

Source from the content-addressed store, hash-verified

331}
332
333func TestLotteryData(t *testing.T) {
334 r, e := stats.Mean(lottery)
335 test("Lottery Mean", r, 518.958715596330, 1e-15, e, t)
336
337 r, e = stats.StandardDeviationSample(lottery)
338 test("Lottery Standard Deviation", r, 291.699727470969, 1e-15, e, t)
339
340 r, e = stats.AutoCorrelation(lottery, 1)
341 test("Lottery AutoCorrelate1", r, -0.120948622967393, 1e-14, e, t)
342}
343
344func TestMavroData(t *testing.T) {
345 r, e := stats.Mean(mavro)

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…