61_direct_chs_root_evaluation: Direct CHS Root Evaluation

Description Usage Arguments Details References See Also Examples

Description

Compute roots of cubic Hermite splines, directly.

Usage

 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)

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

 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)

kubik documentation built on April 15, 2021, 9:09 a.m.