make_warp_fct: Generate a warping function

Description Usage Arguments Details

Description

This function generates different types of warping functions that can be used with pavpop.

Usage

1
2
make_warp_fct(type = c("shift", "linear", "piecewise-linear", "smooth"),
  tw = NULL, control = list(wleft = "fixed", wright = "fixed"))

Arguments

type

type of warping function. See 'Details'.

tw

anchor points for the warping parameters. Needed for types 'piecewise-linear' and 'smooth'. Note: boundary points must be included.

control

list of control arguments. Entries wleft and wright control whether the warping function is fixed at the boundary ('fixed') or wheter extrapolation from the last interior knot should be done ('extrapolate').

Details

The possible types of warping functions are

shift

a horizontal shift.

linear

a linear streach of the curves.

pieceiwse-linear

a piecewise linear deformation of the curves. Anchor points are given by tw.

smooth

a smooth nonlinear deformation of the curves, produced by an increasing spline (Hyman filtered). Anchor points are given by tw.


larslau/pavpop documentation built on June 14, 2019, 2:18 p.m.