spline

package module
v0.0.0-...-63048a6 Latest Latest
Warning

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

Go to latest
Published: May 22, 2018 License: MIT Imports: 1 Imported by: 1

README

Spline Build Status

The package provides algorithms for spline interpolation.

Documentation

Contributing

  1. Fork the project.
  2. Implement your idea.
  3. Create a pull request.

Documentation

Overview

Package spline provides algorithms for spline interpolation.

https://en.wikipedia.org/wiki/Spline_interpolation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cubic

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

Cubic is a cubic-spline interpolant.

func NewCubic

func NewCubic(x, y []float64) *Cubic

NewCubic constructs a cubic-spline interpolant for a function y = f(x) given as a series of points (x, y). The x coordinates should be a strictly increasing sequence with at least two elements. The corresponding y coordinates can be multidimensional.

func (*Cubic) Evaluate

func (s *Cubic) Evaluate(x []float64) []float64

Evaluate interpolates the function values y = f(x). The x coordinates should be an increasing sequence whose elements belong to the range of the points that the interpolant has been constructed with.

Jump to

Keyboard shortcuts

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