compute_proj_dist: Compute Frobenius norm of matrix-like objects x and y

Description Usage Arguments Value Examples

View source: R/tour-utils.R

Description

Compute Frobenius norm of matrix-like objects x and y

Usage

1

Arguments

x, y

'matrix' like objects that have tcrossprod methods

Value

A numeric vector of length 1 that is the Frobenius norm

Examples

1
2
3
x <- matrix(rnorm(300), ncol = 3)
y <- matrix(rnorm(300), ncol = 3)
compute_proj_dist(x, y)

liminal documentation built on May 28, 2021, 9:06 a.m.