normalizeW-methods: Normalize the signatures matrix (W)

normalizeWR Documentation

Normalize the signatures matrix (W)

Description

After column normalization of the matrix W, the inverse factors are mutiplied with the rows of H in order to keep the matrix product W*H constant.

Usage

normalizeW(nmf_exp, ...)

## S4 method for signature 'ButchR_NMF'
normalizeW(nmf_exp)

Arguments

nmf_exp

an object of class ButchR_NMF.

...

additional parameters.

Value

a ButchR_NMF object normalized by W.

Examples

data("leukemia")
nmf_exp <- run_NMF_tensor(leukemia$matrix, ranks = 2,
method = "NMF",
n_initializations = 2)
normalizeW(nmf_exp)
## Not run: 
data("leukemia")
nmf_exp <- run_NMF_tensor(leukemia$matrix, ranks = 2:10,
method = "NMF",
n_initializations = 10)
normalizeW(nmf_exp)

## End(Not run)

hdsu-bioquant/ButchR documentation built on Jan. 28, 2023, 6:06 p.m.