discrete2warping: Converts a warping function from vector to functional data...

View source: R/refactoring.R

discrete2warpingR Documentation

Converts a warping function from vector to functional data object

Description

Converts a warping function from vector to functional data object

Usage

discrete2warping(gam)

Arguments

gam

A numeric vector of length M specifying a warping function on an evenly spaced grid of [0, 1] of length M.

Value

A function that takes a numeric vector s of values in [0, 1] as input and returns the values of the original warping function at s.

Examples

discrete2warping(toy_warp$gam[, 1])

fdasrvf documentation built on Oct. 5, 2024, 1:08 a.m.