Approximation Module
Approximation
Types
Type | Description |
Functions and values
Function or value | Description |
Full Usage:
approx xData yData v ties
Parameters:
float seq
-
unsorted x values
yData : float seq
-
y values of corresponding x values
v : float seq
-
Collection of x values of which the y values should be predicted using straight interpolating lines between the input knots.
ties : float seq -> float
-
function to transform a collection of y values, that have equal x values (e.g. Seq.average, Seq.max, Seq.min)
Returns: float seq
Collection of predicted v,y tuples.
|
|
Full Usage:
chebyshevNodes interval n
Parameters:
Interval<float>
-
start and end value of interpolation range
n : int
-
number of points that should be placed within the interval (incl. start and end)
Returns: float array
Collection of chebyshev spaced x values.
|
www.mscroggs.co.uk/blog/57
|
Full Usage:
equalNodes interval n
Parameters:
Interval<float>
-
start and end value of interpolation range
n : int
-
number of points that should be placed within the interval (incl. start and end)
Returns: Vector<float>
Collection of equally spaced x values.
|
|
Full Usage:
regularizeValues xData yData ties
Parameters:
float seq
-
unsorted x values
yData : float seq
-
y values of corresponding x values
ties : float seq -> float
-
function to transform a collection of y values, that have equal x values (e.g. Seq.average, Seq.max, Seq.min)
Returns: (float * float) seq
Collection of sorted x,y tuples with unique x values
|
|