Learn R Programming

registr (version 1.0.0)

constraints: Define constraints for optimization of warping functions

Description

Constraints ensure monotonicity of spline coefficients for warping functions for use with constrOptim() function.

Usage

constraints(Kh, t_min = 0, t_max = 1, parametric_warps = FALSE)

Value

An list containing:

ui

A constraint matrix.

ci

A constraint vector.

Arguments

Kh

Number of B-spline basis functions used to estimate warping functions h.

t_min

Minimum value to be evaluated on the time domain.

t_max

Maximum value to be evaluated on the time domain.

parametric_warps

If FALSE (default), inverse warping functions are estimated nonparametrically. If 'beta_cdf', they are assumed to have the form of a Beta(a,b) CDF. If 'piecewise' they follow a piecewise parameterized function.