recluster.expl<-function (dist, clust) {
mat <- as.vector(dist)
same <- as.vector(dist(clust))
beta <- sum(mat, na.rm=T)
partial <- sum(mat[which(same > 0)], na.rm=T)
return(partial/beta)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.