core

package
v0.0.0-...-bf6cb5e Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Package core is a the core of the downsampling library.

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

LTD - Largest triangle dynamic(LTD) data downsampling algorithm implementation

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

func LTOB

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

LTOB - 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

LTTB - 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

LTTB2 - split the data into buckets and then apply run LTTB on each bucket

func LTTBForBuckets

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

LTTBForBuckets - apply LTTB on each bucket

Jump to

Keyboard shortcuts

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