to_hilbert_sphere: Projects an SRVF onto the Hilbert sphere

View source: R/refactoring.R

to_hilbert_sphereR Documentation

Projects an SRVF onto the Hilbert sphere

Description

Projects an SRVF onto the Hilbert sphere

Usage

to_hilbert_sphere(qfun, qnorm = sqrt(get_l2_inner_product(qfun, qfun)))

Arguments

qfun

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

qnorm

A numeric value specifying the L^2 norm of the SRVF. Defaults to \sqrt{\langle q, q \rangle}.

Value

A function that takes a numeric vector s of values in [0, 1] as input and returns the values of the SRVF projected onto the Hilbert sphere.

Examples

q <- curve2srvf(beta[, , 1, 1])
to_hilbert_sphere(q)

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