(interpolate points & [smoothness])
Interpolates the given points using Fritsch-Carlson Monotone cubic Hermite interpolation.
Expects at least 3 points sorted by the x coordinate.
An optional parameter "smoothness" can be specified to adjust smoothing. A value between 2 and 10 is recommended, where 2 is very smooth and 10 less smooth.
Note: A proper smoothing factor depends on the data-scale described by points. Defaults to 6.
Returns an array of tangent vectors (which is a vector of length 2).
For details, see http://en.wikipedia.org/wiki/Monotone_cubic_interpolation
Interpolates the given points using Fritsch-Carlson Monotone cubic Hermite interpolation. Expects at least 3 points sorted by the x coordinate. An optional parameter "smoothness" can be specified to adjust smoothing. A value between 2 and 10 is recommended, where 2 is very smooth and 10 less smooth. Note: A proper smoothing factor depends on the data-scale described by points. Defaults to 6. Returns an array of tangent vectors (which is a vector of length 2). For details, see http://en.wikipedia.org/wiki/Monotone_cubic_interpolation
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close