MCPcopy Create free account
hub / github.com/github/gh-aw / Max

Method Max

pkg/stats/statvar.go:73–78  ·  view source on GitHub ↗

Max returns the largest observed value, or 0 if no observations have been added.

()

Source from the content-addressed store, hash-verified

71
72// Max returns the largest observed value, or 0 if no observations have been added.
73func (s *StatVar) Max() float64 {
74 if s.count == 0 {
75 return 0
76 }
77 return s.max
78}
79
80// Mean returns the arithmetic mean of all observations, or 0 if none.
81func (s *StatVar) Mean() float64 {

Callers 9

parseEventsJSONLMetricsFunction · 0.95
TestStatVar_EmptyFunction · 0.95
TestStatVar_OddCountFunction · 0.95
TestStatVar_EvenCountFunction · 0.95
applyMetricsTrendStatsFunction · 0.80

Calls

no outgoing calls

Tested by 7

TestStatVar_EmptyFunction · 0.76
TestStatVar_OddCountFunction · 0.76
TestStatVar_EvenCountFunction · 0.76