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

Function makeFloatSlice

data_test.go:31–38  ·  view source on GitHub ↗

makeFloatSlice makes a slice of float64s

(c int)

Source from the content-addressed store, hash-verified

29
30// makeFloatSlice makes a slice of float64s
31func makeFloatSlice(c int) []float64 {
32 lf := make([]float64, 0, c)
33 for i := 0; i < c; i++ {
34 f := float64(i * 100)
35 lf = append(lf, f)
36 }
37 return lf
38}
39
40func makeRandFloatSlice(c int) []float64 {
41 lf := make([]float64, 0, c)

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…