package
1.0.0-rc
Repository: https://github.com/cryft-labs/cryftgo.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
Add64 returns: 1) a + b 2) If there is overflow, an error Note that we don't have a generic Add function because checking for an overflow requires knowing the max size of a given type, which we don't know if we're adding generic types.
Mul64 returns: 1) a * b 2) If there is overflow, an error Note that we don't have a generic Mul function because checking for an overflow requires knowing the max size of a given type, which we don't know if we're adding generic types.
No description provided by the author
NewMaxAveragerHeap returns a new empty max heap.
No description provided by the author
NewUninitializedAverager creates a new averager with the given halflife.
Sub returns: 1) a - b 2) If there is underflow, an error.

# Variables

No description provided by the author
No description provided by the author

# Interfaces

Averager tracks a continuous time exponential moving average of the provided values.
TODO replace this interface with utils/heap AveragerHeap maintains a heap of the averagers.