interpolation

package module
v0.0.0-...-38be664 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: LGPL-3.0 Imports: 1 Imported by: 2

README

# Interpolation

`import "github.com/gilmae/interpolation"`

usage:
```go
  var xSequence = []float64{0.0, .16, .42, .6425, .8675, 1}
  var ySequence =  []float64{100.0, 203.0,255.0, 0.0, 0.0, 100.0}
  var interpolant = interpolation.CreateMonotonicCubic(xSequence, ySequence)

  for i:= 0; i < 1000; i++ {
    fmt.Printf("%s", interpolant(i/1000.0))  
  }
```
Montonic Cubic Interpolation algorithm adapted from [Wikipedia example](https://en.wikipedia.org/w/index.php?title=Monotone_cubic_interpolation&oldid=720181378#Example_implementation)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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