Learn R Programming

OSNMTF (version 0.1.0)

ASR: Average Residue

Description

To calculate average residues of the bi-clustering results

Usage

ASR(row_cluster,col_cluster,W)

Arguments

row_cluster

The cluster results of the rows of W, this value should be a vector whose length is the same as the number of rows in W

col_cluster

The cluster results of the columns of W, this value should be a vector whose length is the same as the number of columns in W

W

The matrix to be factorized

Value

The average residues of the bi-clustering results

Examples

Run this code
# NOT RUN {
W <- simu_data_generation()
OSNMTF_res <- OSNMTF(W,k=5,l=4)
row_cluster <- OSNMTF_res[[2]][[1]]
column_cluster <- OSNMTF_res[[2]][[2]]
ASR_value <- ASR(row_cluster,column_cluster,W)
# }

Run the code above in your browser using DataLab