get_hard {c2c} | R Documentation |
Decompose soft (fuzzy, probabilistic) membership to hard binary matrix
Description
Used in get_conf_mat
but might be useful separately
Usage
get_hard(x)
Arguments
x |
A matrix or data frame (or something coercible to a matrix) containing memberships - rows are sites (observations, cases etc.) columns are classes |
Value
Binary matrix of class membership. Class names inherited from names()
or colnames()
.
Examples
my_mat <- matrix(runif(20,0,1), nrow = 4)
get_hard(my_mat)
[Package c2c version 0.1.0 Index]