Description Usage Arguments Details References See Also Examples
Compute roots of cubic Hermite splines, directly.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | root.chs.eval (cx, cy, cb, ...,
include.implied.roots=TRUE, warning=TRUE)
argmin.chs.eval (cx, cy, cb, ...,
include.implied.roots=TRUE, warning=TRUE)
argmax.chs.eval (cx, cy, cb, ...,
include.implied.roots=TRUE, warning=TRUE)
argflex.chs.eval (cx, cy, cb, ...,
include.implied.roots=TRUE, warning=TRUE)
roots.chs.eval (cx, cy, cb, ...,
include.implied.roots=TRUE, warning=TRUE)
argmins.chs.eval (cx, cy, cb, ...,
include.implied.roots=TRUE, warning=TRUE)
argmaxs.chs.eval (cx, cy, cb, ...,
include.implied.roots=TRUE, warning=TRUE)
argflexs.chs.eval (cx, cy, cb, ...,
include.implied.roots=TRUE, warning=TRUE)
chs.roots.derivative.eval (cx, cy, cb, ...,
include.implied.roots=TRUE, warning=TRUE)
|
cx |
Vector of unique ascending control point x values. |
cy |
Vector of control point y values. |
cb |
Vector of control slopes. |
include.implied.roots |
If true, include implied roots. |
warning |
If true, give a warning if there's relevant constant/level (or linear) sections. |
... |
Ignored. |
Refer to the help page for roots.chs, for more information.
(The functions described in that help page are similar to these functions).
These functions (with a .eval suffix) compute roots of cubic Hermite splines, without using function objects, and with minimal error checking.
Alternatively, you can use function objects, which are likely to be more convenient, in most cases.
Please refer to the help page for chs for background information and references.
chs, roots.chs
1 2 3 4 5 6 7 8 9 10 11 | #control points
cx <- 1:4
cy <- c (1, -1, -1, 1)
#control slopes
cb <- chs.slopes (cx, cy)
#roots
#(without function object)
roots.chs.eval (cx, cy, cb)
argmins.chs.eval (cx, cy, cb)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.