downsampling

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Point

type Point struct {
	X float64
	Y float64
}

Point is a point on a line

func LTD

func LTD(data []Point, threshold int) []Point

func LTOB

func LTOB(data []Point, threshold int) []Point

Largest triangle one bucket(LTOB) data downsampling algorithm implementation

  • Require: data . The original data
  • Require: threshold . Number of data points to be returned

func LTTB

func LTTB(data []Point, threshold int) []Point

Largest triangle three buckets (LTTB) data downsampling algorithm implementation

  • Require: data . The original data
  • Require: threshold . Number of data points to be returned

func LTTB2

func LTTB2(data []Point, threshold int) []Point

func LTTBForBuckets

func LTTBForBuckets(buckets [][]Point) []Point

Jump to

Keyboard shortcuts

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