Description Usage Arguments Value
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.
1 | filter_matrix(m, threshold)
|
m |
The input matrix |
treshold |
The threhsold used for filtering. See Description for details |
This function does not return any value. The input matrix is modified in-place.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.