degree2logical | R Documentation |
Transforms a matrix of membership degrees into a logical matrix based on a specified threshold.
degree2logical(x, t = min(apply(x, 1, max)))
x |
A matrix of membership degrees. |
t |
Threshold value for converting the degrees to logical values. By default, it uses the minimum of the maximum values in each row. |
A logical matrix where each element is 'TRUE' if it meets or exceeds the threshold, and 'FALSE' otherwise.
degrees <- matrix(runif(9), nrow = 3)
degree2logical(degrees, t = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.