Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Point ¶
type Point struct{ X, Y float64 }
A Point in a line chart.
func Downsample ¶
Downsample `count` number of data points retrieved from the given iterator function to contain only `threshold` number of points while maintaining close visual similarity to the original data. The algorithm is called Largest-Triangle-Three-Buckets and is described in: https://skemman.is/bitstream/1946/15343/3/SS_MSthesis.pdf
This implementation grew out of https://github.com/dgryski/go-lttb to limit memory usage by leveraging iterators.
Click to show internal directories.
Click to hide internal directories.