filter_matrix: Filter a matrix based on a threshold value

Description Usage Arguments Value

View source: R/RcppExports.R

Description

This function filters an input matrix based on a threshold value. Values below the threshold are set to 0. For each row this function calculates max(row). The actual threshold used for filtering is min(threshold, max(row)). This guarantees that there is always at least one non-zero value in each row. WARNING: the input matrix is modified in-place.

Usage

1
filter_matrix(m, threshold)

Arguments

m

The input matrix

treshold

The threhsold used for filtering. See Description for details

Value

This function does not return any value. The input matrix is modified in-place.


ParkerICI/scgraphs documentation built on April 30, 2021, 1:10 p.m.