Learn R Programming

kubik (version 0.3.0)

61_direct_chs_root_evaluation: Direct CHS Root Evaluation

Description

Compute roots of cubic Hermite splines, directly.

Usage

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)

Arguments

cx

Vector of unique ascending control point x values. (Preferably, equally-spaced).

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.

Details

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.

References

Please refer to the help page for chs for background information and references.

See Also

chs, roots.chs

Examples

Run this code
# NOT RUN {
#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)
# }

Run the code above in your browser using DataLab