R/defaultMWCAParams.R

Defines functions defaultMWCAParams

Documented in defaultMWCAParams

defaultMWCAParams <- function(X){
    stopifnot(is.array(X))
    # Default Parameters
    new("MWCAParams",
        X=X,
        mask=NULL,
        pseudocount=.Machine$double.eps,
        algorithms=rep("mySVD", length=length(dim(X))),
        dims=sapply(dim(X), function(x){min(x, 2)}),
        transpose=FALSE,
        viz=FALSE,
        figdir=NULL)
}

Try the mwTensor package in your browser

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

mwTensor documentation built on July 9, 2023, 6:42 p.m.