R/atCfn.R

Defines functions atCfn

Documented in atCfn

atCfn <-
function(aM,
                  M,
                  At,
                  at)
{
  #Estimate atC
  atC <- mapply(function(a, b){c(t(t(aM) + M %*% inv(a + M) %*% (b - t(aM))))},
                At, at, SIMPLIFY = FALSE)
  #Input names
  atC <- lapply(atC, function(a) {names(a) <- colnames(aM); a})
  #Output
  atC
}

Try the lmf package in your browser

Any scripts or data that you put into this service are public.

lmf documentation built on June 24, 2022, 5:06 p.m.