powered by
Transforms a matrix of membership degrees into a logical matrix based on a specified threshold.
degree2logical(x, t = min(apply(x, 1, max)))
A logical matrix where each element is `TRUE` if it meets or exceeds the threshold, and `FALSE` otherwise.
A matrix of membership degrees.
Threshold value for converting the degrees to logical values. By default, it uses the minimum of the maximum values in each row.
degrees <- matrix(runif(9), nrow = 3) degree2logical(degrees, t = 0.5)
Run the code above in your browser using DataLab