T2: Partial Inner Product w.r.t. the Second Argument

T2R Documentation

Partial Inner Product w.r.t. the Second Argument

Description

Calculates T_2(X x X, A_r), i.e. the partial inner product of the covariance of X with the current weight A_r resulting in a temporal kernel (proxy for B_r), which is then orthogonalized w.r.t B_1,...,B_r-1.

Usage

T2(X, A, B, sigma, r, N, K1, K2)

Arguments

X

data set, array of size N x K1 x K2

A

temporal kernels, array of size (>= r) x K1 x K1

B

spatial kernels, array of size (>= r) x K2 x K2

sigma

separable component scores, vector of size >= r

r

current sought separable rank

N

sample size

K1

temporal grid size

K2

spatial grid size

Value

r-th spatial kernel B_r, array of size K1 x K1

Examples

X <- array(rnorm(20*3*4),c(20,3,4))
A <- array(runif(2*3^2),c(2,3,3))
B <- array(runif(2*4^2),c(2,4,4))
T2(X, A, B, c(1,1), 2, 20, 3, 4)

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