sampling

package
v0.0.0-...-e311a6d Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SavePointsToCSV

func SavePointsToCSV(file string, points []Point) error

Types

type LTDSampler

type LTDSampler struct{}

func (*LTDSampler) Sample

func (c *LTDSampler) Sample(points []Point, sampleNum uint32) (samples []Point, err error)

type LTTBSampler

type LTTBSampler struct{}

func (*LTTBSampler) Sample

func (c *LTTBSampler) Sample(points []Point, sampleNum uint32) (samples []Point, err error)

type Point

type Point = downsampling.Point

func LoadPointsFromCSV

func LoadPointsFromCSV(file string) ([]Point, error)

type Sampler

type Sampler interface {
	Sample(points []Point, sampleNum uint32) ([]Point, error)
}

Sampler is the interface that wraps the basic Sample method. if sampleNum == 0, return original points

func NewLTDSampler

func NewLTDSampler() Sampler

func NewLTTBSampler

func NewLTTBSampler() Sampler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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