R/cellwise_utils.R
cellWeightsMCD.RdFor each continuous cell (i,j), computes the conditional expectation \(E(x_{ij} | x_{i,-j})\) under a robust Gaussian model (estimated via MCD), standardizes the residual, and applies a weight function. This captures multivariate outlier structure that univariate standardization misses.
cellWeightsMCD(X, method = "tukey", alpha = NULL)an n x p numeric matrix of weights in \([0, 1]\)