MCPcopy Create free account
hub / github.com/cortexproject/cortex / SumValues

Function SumValues

integration/e2e/metrics.go:77–83  ·  view source on GitHub ↗
(values []float64)

Source from the content-addressed store, hash-verified

75}
76
77func SumValues(values []float64) float64 {
78 sum := 0.0
79 for _, v := range values {
80 sum += v
81 }
82 return sum
83}
84
85func EqualsSingle(expected float64) func(float64) bool {
86 return func(v float64) bool {

Callers 3

TestIngesterShardingFunction · 0.92
SumMetricsMethod · 0.85

Calls

no outgoing calls