Discover Packages
github.com/Not-Diamond/go-notdiamond
pkg
statistic
package
Version:
v0.0.23
Opens a new window with list of versions in this module.
Published: Mar 5, 2025
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
DataPoint represents a single data point in a time series.
Statistic is a generic structure to hold time series data.
Add appends a new data point to the series.
Max returns the maximum value in the data set.
Min returns the minimum value in the data set.
MovingAverage calculates the moving (or rolling) average for the data points,
using the specified window size. The returned slice is aligned with the data slice.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.