Documentation
¶
Overview ¶
Package maths contains additional mathematical functions or structures not found in the standard library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EWMA ¶
type EWMA struct {
// contains filtered or unexported fields
}
EWMA is an exponentially weighted moving average supporting updates at irregular intervals with at most nanosecond resolution. The zero value will compute a half-life of 1 second. It is not safe for concurrent use. TODO(raggi): de-duplicate with tstime/rate.Value, which has a more complex and synchronized interface and does not provide direct access to the stable value.
Click to show internal directories.
Click to hide internal directories.