Popularity
2.3
Growing
Activity
0.0
Stable
23
5
3
Programming language: Go
License: MIT License
Latest version: v2.0.5
piecewiselinear alternatives and similar packages
Based on the "Science and Data Analysis" category.
Alternatively, view piecewiselinear alternatives based on common mentions on social networks and blogs.

gonum
Gonum is a set of numeric libraries for the Go programming language. It contains libraries for matrices, statistics, optimization, and more 
Stats
A well tested and comprehensive Golang statistics library package with no dependencies. 
gosl
Linear algebra, eigenvalues, FFT, Bessel, elliptic, orthogonal polys, geometry, NURBS, numerical quadrature, 3D transfinite interpolation, random numbers, Mersenne twister, probability distributions, optimisation, differential equations. 
dataframego
DataFrames for Go: For statistics, machinelearning, and data manipulation/exploration 
goraph
Package goraph implements graph data structure and algorithms. 
gonum/mat64
The general purpose package for matrix computation. Package mat64 provides basic linear algebra operations for float64 matrices. 
calendarheatmap
📅 Calendar heatmap inspired by GitHub contribution activity 
TextRank
:wink: :cyclone: :strawberry: TextRank implementation in Golang with extendable features (summarization, phrase extraction) and multithreading (goroutine). 
sparse
Sparse matrix formats for linear algebra supporting scientific and machine learning applications 
evaler
Implements a simple floating point arithmetic expression evaluator in Go (golang). 
triangolatte
2D triangulation library. Allows translating lines and polygons (both based on points) to the language of GPUs. 
PiHex
PiHex Library, written in Go, generates a hexadecimal number sequence in the number Pi in the range from 0 to 10,000,000. 
GoStats
GoStats is a go library for math statistics mostly used in ML domains, it covers most of the statistical measures functions. 
godesim
ODE system solver made simple. For IVPs (initial value problems). 
assocentity
Package assocentity returns the average distance from words to a given entity and its synonyms 
bradleyterry
Package to do BradleyTerry Model pairwise compairsons 
gocomplex
Automatically exported from code.google.com/p/gocomplex 
mudlarkgo
A collection of packages providing (hopefully) useful code for use in software using Google's Go programming language.
Build timeseriesbased applications quickly and at scale.
InfluxDB is the Time Series Platform where developers build realtime applications for analytics, IoT and cloudnative services. Easy to start, it is available in the cloud or onpremises.
Promo
www.influxdata.com
Do you think we are missing an alternative of piecewiselinear or a related project?
Popular Comparisons
README
piecewiselinear
A tiny library for linear interpolation. O(log(N))
per evaluation for N
control points.
import "github.com/sgreben/piecewiselinear"
Get it
go get u "github.com/sgreben/piecewiselinear"
Use it
import "github.com/sgreben/piecewiselinear"
func main() {
f := piecewiselinear.Function{Y:[]float64{0,1,0}} // range: "hat" function
f.X = piecewiselinear.Span(0, 1, len(f.Y)) // domain: equidistant points along X axis
fmt.Println(
f.At(0), // f.At(x) evaluates f at x
f.At(0.25),
f.At(0.5),
f.At(0.75),
f.At(1.0),
f.At(123.0), // outside its domain X the function is constant 0
f.At(123.0), //
)
// Output:
// 0 0.5 1 0.5 0 0 0
}