oneeurofilter

package module
Version: v0.0.0-...-3ee8b2d Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2020 License: MIT Imports: 1 Imported by: 0

README

one-euro-filter

Simple golang implementation of a One Euro Filter.

filter := NewOneEuroFilter(t0, x0, dx0, minCutoff, beta, dCutoff float64)
xHat := filter.Update(t, x)

Based on https://github.com/jaantollander/OneEuroFilter

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OneEuroFilter

type OneEuroFilter struct {
	// contains filtered or unexported fields
}

func NewOneEuroFilter

func NewOneEuroFilter(t0, x0, dx0, minCutoff, beta, dCutoff float64) *OneEuroFilter

NewOneEuroFilter initializes a new One Euro Filter

func (*OneEuroFilter) Update

func (f *OneEuroFilter) Update(t, x float64) float64

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL