interpolate

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cubic

func Cubic(y0, y1, y2, y3, fractionalDistance float64) float64

Cubic performs 4-point, 3rd-order (cubic) Hermite interpolation (x-form). Given 4 evenly-spaced sample points and a fractional distance (0 to 1), interpolates a value between the middle two points. Source: https://www.musicdsp.org/en/latest/Other/93-hermite-interpollation.html

func Linear

func Linear(y0, y1, fractionalDistance float64) float64

Linear performs linear interpolation between two points. Given y-values from two points and a fractional distance (0 to 1), calculates the y-value for a point between them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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