stats_test.go: fix TestAutocorrelate

This commit is contained in:
leo 2023-02-25 13:46:15 +01:00
parent 37f15b9fa6
commit 8dc432a14b
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -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},
},
}