Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/icholy/rolling


https://github.com/icholy/rolling

Last synced: 1 day ago
JSON representation

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})
```