Package traces is a library for unevenly-spaced event series analysis.
It is based on a similar but more extensive python package developed by Datascope Analytics.
import "github.com/ders/traces"
Create a new series.
s := NewInt64Series()
Add points.
s.Set(0, 10)
s.Set(65000, 20)
Or create and add in one operation.
s0 := NewInt64Series(map[int64]int64{0: 10, 65000: 20})