diff --git a/p2/stats/stats_test.go b/p2/stats/stats_test.go index 7e106c0..0ef0e03 100644 --- a/p2/stats/stats_test.go +++ b/p2/stats/stats_test.go @@ -13,13 +13,13 @@ func TestAutocorrelate(t *testing.T) { desc: "autocorrelate a 10-long slice", maxShift: .1, in: []float64{.4, .5, .23, 2.5, -3.6, .4, -0.12, 2.2, 0.02, 14.4}, - out: []float64{0, 9.529999999999998}, + out: []float64{23.204770000000003, -1.0588888888888885}, }, { desc: "autocorrelate a 20-long slice", maxShift: .1, in: []float64{.4, .5, .23, 2.5, -3.6, .4, -0.12, 2.2, 0.02, 14.4, .4, .5, .23, 2.5, -3.6, .4, -0.12, 2.2, 0.02, 14.4}, - out: []float64{0, 13.299999999999994, -152.43040000000002}, + out: []float64{23.204770000000003, -0.6999999999999996, 4.234177777777778}, }, }