curve2srvf: Converts a curve to its SRVF representation

View source: R/refactoring.R

curve2srvfR Documentation

Converts a curve to its SRVF representation

Description

Converts a curve to its SRVF representation

Usage

curve2srvf(beta, is_derivative = FALSE)

Arguments

beta

A numeric matrix of size L \times M specifying a curve on an L-dimensional space observed on an evenly spaced grid of [0, 1] of length M.

is_derivative

A boolean value specifying whether the input beta is the derivative of the original curve. Defaults to FALSE.

Value

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

Examples

curve2srvf(beta[, , 1, 1])

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