stats_test.go: fix TestAutocorrelate
This commit is contained in:
parent
37f15b9fa6
commit
8dc432a14b
@ -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},
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user