get_l2_distance | R Documentation |
L^2
distance between two SRVFsComputes the L^2
distance between two SRVFs
get_l2_distance(q1fun, q2fun, method = "quadrature")
q1fun |
A function that takes a numeric vector |
q2fun |
A function that takes a numeric vector |
method |
A character string specifying the method to use for computing
the |
A numeric value storing the L^2
distance between the two SRVFs.
q1 <- curve2srvf(beta[, , 1, 1])
q2 <- curve2srvf(beta[, , 1, 2])
get_l2_distance(q1, q2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.