Interpolate
public static interpolate ( $source, $args ) : |
||
$source | The source of our approximation. Should be either a callback function or a set of arrays. Each array (point) contains precisely two numbers, an x and y. Example array: [[1,2], [2,3], [3,4]]. Example callback: function($x) {return $x**2;} | |
return | The interpolting (piecewise) polynomial, as an instance of Piecewise. |