https://github.com/icholy/rolling
https://github.com/icholy/rolling
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/icholy/rolling
- Owner: icholy
- License: mit
- Created: 2020-04-27T23:11:52.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-27T23:32:21.000Z (about 5 years ago)
- Last Synced: 2024-04-15T14:25:38.789Z (about 1 year ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rolling - data windows for gonum/plot
* Rolling data for plots implemented as array backed ring buffers.
* Provides types that implement: `gonum.org/v1/plot/plotter.{Valuer,XYer,XYZr}`### Example:
``` go
// only retain the last 1000 added values
xys := rolling.NewXYs(1000)
xys.Add(plotter.XY{X: 1, Y: 0})
xys.Add(plotter.XY{X: 0, Y: 1})
```