distance2 = function(P, Q, method, p = NULL, test.na = TRUE, unit, est.prob = NULL){
x = rbind(P, Q)
suppressMessages(philentropy::distance(x,
method = method,
p = p,
test.na = test.na,
unit = unit,
est.prob = est.prob,
mute.message = TRUE))
}
normalize_signature = function(x, normalization){
if (normalization == "pdf"){
return(x / sum(x))
}
}
ceiling2 = function(x) ceiling(signif(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.