Skip to content

Commit

Permalink
float test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jader Dias committed Jun 14, 2015
1 parent e21e5bb commit 04b15e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions movingmedian_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,10 @@ func benchmark(b *testing.B, numberOfValues, windowSize int) {
}

func getData(rangeSize, windowSize int) []float64 {
ceil := (windowSize + 3) / 2
var data = make([]float64, rangeSize)
var r = rand.New(rand.NewSource(99))
for i, _ := range data {
data[i] = float64((r.Int() % ceil) * 2)
data[i] = r.Float64()
}

return data
Expand Down

0 comments on commit 04b15e9

Please sign in to comment.