Description Usage Arguments Details Value Author(s) References See Also Examples
Extract arguments, eliminate duplicates in x, averaging corresponding y's, summing corresponding weights, and maintaining the dominant sign of convexity constraints.
1 | xyw.coords(x, y = NULL, w = NULL, v = NULL, ...)
|
x |
A |
y |
Optional numeric vector. See details. |
w |
Optional vector of weights |
v |
Convexity constraints. See details. |
... |
Optional arguments, currently ignored. |
'x' and 'y' are first passed to xy.coords
for
initial parsing. Then duplicate 'x' values are identified, and
corresponding values of y, w and v are processed to average y's, sum
w's, and use sign(sum(v's)). If(missing(w)) w = 1. If(missing(v)) v
= 0.
A list with the following components:
x |
unique of input x values, sorted |
y |
input y, arranged to match x, with values corresponding to duplicate x values replaced by their mean. |
w |
input w, arranged to match x, with values corresponding to duplicate x values replaced by their sum. |
v |
input v, arranged to match x, with values corresponding to duplicate x values replaced by the sign of their sum. |
xin |
input x values |
yin |
input y values |
Sundar Dorai-Raj
Dierckx, P. (1991) Curve and Surface Fitting with Splines, Oxford Science Publications.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.