R/xfit.R

Defines functions xfit

Documented in xfit

xfit <- function(T, P, xmeans = rep(0, dim(P)[1])) {

    T <- .matrix(T)
    P <- .matrix(P)

    .center(tcrossprod(T, P), -xmeans)

    }
mlesnoff/rnirs documentation built on April 24, 2023, 4:17 a.m.