Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compress ¶
func Compress(x []int64, y []interface{}, npoints int, x0, x1 int64) ([]int64, []interface{}, error)
Compress reduces the number of data points provided to a target number of npoints. It first tries to drop duplicates (i.e. repeating y values) and if necessary rebins the result onto a regular grid on a time window from x0 to x1. The x-coordinate has units of seconds since 1970-01-01 UTC.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.