frobenius_spb: Frobenius Norm of a Difference of Two Separable-plus-banded...

View source: R/frobenius.R

frobenius_spbR Documentation

Frobenius Norm of a Difference of Two Separable-plus-banded Covariances

Description

Frobenius Norm of a Difference of Two Separable-plus-banded Covariances

Usage

frobenius_spb(Chat, C = NULL, relative = T)

Arguments

Chat

separable-plus-banded model A1 x A2 + B, i.e. a list of 3 elements: matrix A1, matrix A2, the symbol of B

C

as Chat above

relative

flag whether the error relative to C should be computed, defaults to TRUE

Value

a number, the Frobenius norm

Examples

X <- array(runif(20*4*5), c(20,4,5))
Y <- array(runif(20*4*5), c(20,4,5))
Chat <- spb(X,2)
C <- spb(Y,2)
frobenius_spb(Chat,C)

TMasak/surfcov documentation built on April 25, 2022, 12:15 a.m.