- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for filledBuf (0.22 sec)
-
cmd/bucket-replication-metrics.go
CAvg float64 // cumulative average prevSMA float64 filledBuf bool } func newSMA(ln int) *SMA { if ln <= 0 { ln = defaultWindowSize } return &SMA{ buf: make([]float64, ln), window: ln, idx: 0, } } func (s *SMA) addSample(next float64) { prev := s.buf[s.idx] s.buf[s.idx] = next if s.filledBuf { s.prevSMA += (next - prev) / float64(s.window)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Feb 06 06:00:45 UTC 2024 - 14.2K bytes - Viewed (0)