Popularity
2.0
Growing
Activity
0.0
Declining
16
4
1
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. -
gonum/plot
gonum/plot provides an API for building and drawing plots in Go. -
Stats
A statistics package with common functions that are missing from the Golang standard library. -
gosl
Go scientific library for linear algebra, FFT, geometry, NURBS, numerical methods, probabilities, optimisation, differential equations, and more. -
streamtools
general purpose, graphical tool for dealing with streams of data. -
chart
Simple Chart Plotting library for Go. Supports many graphs types. -
goraph
A pure Go graph theory library(data structure, algorith visualization) -
dataframe-go
Dataframes for machine-learning and statistics (similar to pandas). -
gonum/mat64
The general purpose package for matrix computation. Package mat64 provides basic linear algebra operations for float64 matrices. -
calendarheatmap
Calendar heatmap in plain Go inspired by Github contribution activity. -
TextRank
TextRank implementation in Golang with extendable features (summarization, weighting, phrase extraction) and multithreading (goroutine) support. -
sparse
Go Sparse matrix formats for linear algebra supporting scientific and machine learning applications, compatible with gonum matrix libraries. -
vectormath
Vectormath for Go, an adaptation of the scalar C functions from Sony's Vector Math library, as found in the Bullet-2.79 source code. (currently inactive) -
PiHex
Implementation of the "Bailey-Borwein-Plouffe" algorithm for the hexadecimal number Pi -
triangolatte
2D triangulation library. Allows translating lines and polygons (both based on points) to the language of GPUs. -
ode
An ordinary differential equation (ODE) solver which supports extended states and channel-based iteration stop conditions. -
GoStats
GoStats is an Open Source GoLang library for math statistics mostly used in Machine Learning domains, it covers most of the Statistical measures functions. -
gofrac
A (goinstallable) fractions library for go with support for basic arithmetic. -
assocentity
Package assocentity returns the average distance from words to a given entity. -
go-fn
Mathematical functions written in Go language, that are not covered by math pkg -
rootfinding
root-finding algorithms library for finding roots of quadratic functions. -
bradleyterry
Provides a Bradley-Terry Model for pairwise comparisons. -
gocomplex
A complex number library for the Go programming language. -
mudlark-go
A collection of packages providing (hopefully) useful code for use in software using Google's Go programming language.
Scout APM - Leading-edge performance monitoring starting at $39/month
Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
Sponsored
scoutapm.com
Do you think we are missing an alternative of piecewiselinear or a related project?
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
}