MCPcopy
hub / github.com/lindb/lindb / makeFloatArray

Function makeFloatArray

aggregation/function/quantile_test.go:29–35  ·  view source on GitHub ↗
(data []float64)

Source from the content-addressed store, hash-verified

27)
28
29func makeFloatArray(data []float64) []*collections.FloatArray {
30 array := collections.NewFloatArray(len(data))
31 for idx := range data {
32 array.SetValue(idx, data[idx])
33 }
34 return []*collections.FloatArray{array}
35}
36
37func getDataFloatArray(array *collections.FloatArray) []float64 {
38 var data []float64

Callers 2

Test_QuantileCallFunction · 0.85

Calls 2

SetValueMethod · 0.95
NewFloatArrayFunction · 0.92

Tested by

no test coverage detected