Last chance! 50% off unlimited learning
Sale ends in
semiring(x, type = c("balance", "cluster"), symclos = TRUE,
transclos = TRUE, labels = NULL, k = 2)
Signed
' classSemiring
' class.
The items included are:signed
## Create the data: two sets with a pair of binary relations
## among three elements
arr <- round( replace( array( runif(18), c(3 ,3, 2) ), array( runif(18),
c(3, 3, 2) ) > .5, 3 ) )
## Make the signed matrix with two types of relations
sg <- signed(arr)
## Establish the semiring structure
semiring(sg)
Run the code above in your browser using DataLab