Nothing
context("Entropy")
entro <- function(x){
p <- table(x)/length(x)
-sum(p*log(p))
}
test_that("entropyCpp is correct",
expect_equal(rasterEntropy(rlogo), {
x <- app(rlogo, entro)
names(x)<-"entropy";
x
})
)
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.