Nothing
isValidBPM <- function(U) {
s1 = colSums(U)
s2 = rowSums(U)
if (any(U != 1 && U != 0)) {
return(FALSE)
}
if (max(s1) != 1 || max(s2) != 1) {
return(FALSE)
}
if (min(s2) <= 0) {
return(FALSE)
}
return(TRUE)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.