compress

package
v0.0.0-...-9714d35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL