- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for smaf (0.02 sec)
-
cmd/bucket-replication-metrics.go
} // SMA struct for calculating simple moving average type SMA struct { buf []float64 window int // len of buf idx int // current index in buf CAvg float64 // cumulative average prevSMA float64 filledBuf bool } func newSMA(ln int) *SMA { if ln <= 0 { ln = defaultWindowSize } return &SMA{ buf: make([]float64, ln),
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Thu Aug 15 12:04:40 UTC 2024 - 14.2K bytes - Viewed (0) -
cmd/bucket-replication-metrics_gen_test.go
t.Errorf("%d bytes left over after Skip(): %q", len(left), left) } } func BenchmarkMarshalMsgSMA(b *testing.B) { v := SMA{} b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { v.MarshalMsg(nil) } } func BenchmarkAppendMsgSMA(b *testing.B) { v := SMA{} bts := make([]byte, 0, v.Msgsize()) bts, _ = v.MarshalMsg(bts[0:0]) b.SetBytes(int64(len(bts))) b.ReportAllocs()
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Tue Feb 06 06:00:45 UTC 2024 - 17.4K bytes - Viewed (0) -
cmd/bucket-replication-metrics_gen.go
} // MarshalMsg implements msgp.Marshaler func (z SMA) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 1 // string "CAvg" o = append(o, 0x81, 0xa4, 0x43, 0x41, 0x76, 0x67) o = msgp.AppendFloat64(o, z.CAvg) return } // UnmarshalMsg implements msgp.Unmarshaler func (z *SMA) UnmarshalMsg(bts []byte) (o []byte, err error) { var field []byte
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Thu Mar 21 17:21:35 UTC 2024 - 33.3K bytes - Viewed (0)