MSR: Mean Residue

Description Usage Arguments Value Author(s) Examples

View source: R/MSR.R

Description

To calculate mean residue of a sub-matrix block of W, indexed by a row cluster and a column cluster

Usage

1
MSR(Block)

Arguments

Block

The sub-matrix block of W, indexed by a row cluster and a column cluster

Value

The mean residue of the block

Author(s)

Xiaoyao Yin

Examples

1
2
3
4
5
6
7
W <- simu_data_generation()
OSNMTF_res <- OSNMTF(W,k=5,l=4)
row_cluster <- OSNMTF_res[[2]][[1]]
column_cluster <- OSNMTF_res[[2]][[2]]
temp_rows <- which(row_cluster==1,TRUE)
temp_cols <- which(column_cluster==1,TRUE)
MSR_value <- MSR(W[temp_rows,temp_cols])

OSNMTF documentation built on Dec. 1, 2019, 1:22 a.m.