Nothing
## Probabilistic distance
setMethod("pdist", signature=c("PSTf", "PSTf"), function (x, y, method="cp", l, ns=5000, symetric=FALSE, output="all") {
if (method=="cp") {
gsx <- generate(x, l=l, n=ns, method="prob")
gsx.px <- predict(x, gsx)
gsx.py <- predict(y, gsx)
dxy <- log(gsx.px/gsx.py)/l
if (symetric) {
gsy <- generate(y, l=l, n=ns, method="prob")
gsy.py <- predict(y, gsy)
gsy.px <- predict(x, gsy)
dyx <- log(gsy.py/gsy.px)/l
res <- (dxy+dyx) / 2
} else {
res <- dxy
}
}
if (output=="mean") { res <- mean(res) }
return(res)
}
)
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.