loss {GeodRegr} | R Documentation |
Loss
Description
Loss for a given p
and V
.
Usage
loss(manifold, p, V, x, y, estimator, cutoff = NULL)
Arguments
manifold |
Type of manifold ( |
p |
A vector (or column matrix) on the manifold. |
V |
A matrix (or vector) where each column is a vector in the tangent
space at |
x |
A matrix or data frame of independent variables; for matrices and data frames, the rows and columns represent the subjects and independent variables, respectively. |
y |
A matrix or data frame (or vector) whose columns represent points on the manifold. |
estimator |
M-type estimator ( |
cutoff |
Cutoff parameter for the |
Value
Loss.
Author(s)
Ha-Young Shin
Examples
y <- matrix(0L, nrow = 3, ncol = 64)
for (i in 1:64) {
y[, i] <- exp_map('hyperbolic', c(1, 0, 0), c(0, runif(1), runif(1)))
}
intrinsic_mean <- intrinsic_location('hyperbolic', y, 'l2')
loss('hyperbolic', intrinsic_mean, numeric(3), numeric(64), y, 'l2')
[Package GeodRegr version 0.2.0 Index]