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

Method Sum

data.go:25–25  ·  view source on GitHub ↗

Sum returns the total of all the numbers in the data

()

Source from the content-addressed store, hash-verified

23
24// Sum returns the total of all the numbers in the data
25func (f Float64Data) Sum() (float64, error) { return Sum(f) }
26
27// CumulativeSum returns the cumulative sum of the data
28func (f Float64Data) CumulativeSum() ([]float64, error) { return CumulativeSum(f) }

Callers 5

BenchmarkMethodsAPIFunction · 0.95
mainFunction · 0.95
normalizeFunction · 0.80
MeanFunction · 0.80
TestHelperMethodsFunction · 0.80

Calls 1

SumFunction · 0.85

Tested by 2

BenchmarkMethodsAPIFunction · 0.76
TestHelperMethodsFunction · 0.64