50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


fdasrvf (version 2.3.6)

get_l2_inner_product: Computes the L2 inner product between two SRVFs

Description

Computes the L2 inner product between two SRVFs

Usage

get_l2_inner_product(q1fun, q2fun)

Value

A numeric value storing the L2 inner product between the two SRVFs.

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.

Examples

Run this code
q1 <- curve2srvf(beta[, , 1, 1])
q2 <- curve2srvf(beta[, , 1, 2])
get_l2_inner_product(q1, q2)

Run the code above in your browser using DataLab