Approximation
Type | Description |
Function or value | Description |
Full Usage:
approx xData yData v ties
Parameters:
seq<float>
-
unsorted x values
yData : seq<float>
-
y values of corresponding x values
v : seq<float>
-
Collection of x values of which the y values should be predicted using straight interpolating lines between the input knots.
ties : seq<float> -> float
-
function to transform a collection of y values, that have equal x values (e.g. Seq.average, Seq.max, Seq.min)
Returns: seq<float>
Collection of predicted v,y tuples.
|
|
|
Creates a collection of ordered x values within a given interval. The spacing is according to Chebyshev to remove runges phenomenon when approximating a given function. www.mscroggs.co.uk/blog/57
|
|
Creates a collection of ordered x values within a given interval. The spacing of the values is always the same.
|
Full Usage:
regularizeValues xData yData ties
Parameters:
seq<float>
-
unsorted x values
yData : seq<float>
-
y values of corresponding x values
ties : seq<float> -> float
-
function to transform a collection of y values, that have equal x values (e.g. Seq.average, Seq.max, Seq.min)
Returns: seq<float * float>
Collection of sorted x,y tuples with unique x values
|
Zips x and y values, sorts them by x values and applies a given function to y values of x duplicate (like R! regularize.values). 1. pairs x-y values 2. filters non finite entries and sorts value pairs by x values 3. handles y values of x value ties by given function
|