get_hilbert_sphere_distance: Computes the geodesic distance between two SRVFs on the...

View source: R/refactoring.R

get_hilbert_sphere_distanceR Documentation

Computes the geodesic distance between two SRVFs on the Hilbert sphere

Description

Computes the geodesic distance between two SRVFs on the Hilbert sphere

Usage

get_hilbert_sphere_distance(q1fun, q2fun)

Arguments

q1fun

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

q2fun

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

Value

A numeric value storing the geodesic distance between the two SRVFs.

Examples

q1 <- curve2srvf(beta[, , 1, 1])
q2 <- curve2srvf(beta[, , 1, 2])
q1p <- to_hilbert_sphere(q1)
q2p <- to_hilbert_sphere(q2)
get_hilbert_sphere_distance(q1p, q2p)

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