dimMatrix: Dimension of a matrix

Description Usage Arguments Value Examples

View source: R/dimMatrix.R

Description

This function returns to the defined dimension of a matrix.

Usage

1
dimMatrix(M, eps)

Arguments

M

M is a numerical matrix.

eps

eps is the threshold.

Value

count

count is the dimension of matrix M with threshold eps.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (M, eps)
{
    M <- M/max(abs(M))
    count <- sum(abs(M) < eps)
    return(count)
  }

xzheng-ac/scPADGRN documentation built on July 26, 2020, 12:41 a.m.