discrete2curve: Converts a curve from matrix to functional data object

View source: R/refactoring.R

discrete2curveR Documentation

Converts a curve from matrix to functional data object

Description

Converts a curve from matrix to functional data object

Usage

discrete2curve(beta)

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.

Value

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

Examples

discrete2curve(beta[, , 1, 1])

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