Add a new interp package with interpolation algorithms: constant, piecewise linear and piecewise constant

This commit is contained in:
Roman Werpachowski
2020-07-06 21:40:06 +01:00
committed by GitHub
parent 42752487ce
commit 551d33a2ee
4 changed files with 371 additions and 0 deletions

9
interp/doc.go Normal file
View File

@@ -0,0 +1,9 @@
// Copyright ©2020 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package interp implements 1-dimensional algorithms for interpolating values.
// Outside of the interpolation interval determined by the interpolated data,
// the returned value is undefined (but we do our best to return something
// reasonable).
package interp // import "gonum.org/v1/gonum/interp"