Nothing
logsumexp <- function(exponents.vec){
m <- max(exponents.vec)
m + log(sum(exp(exponents.vec-m)))
}
elnsum <- function(elnx, elny){
ifelse(
elnx == -Inf, elny,
ifelse(
elny == -Inf, elnx,
ifelse(
elny < elnx,
elnx + log(1+exp(elny-elnx)),
elny + log(1+exp(elnx-elny)))))
}
elnproduct <- function(elnx, elny){
ifelse(
elnx == -Inf | elny == -Inf,
-Inf,
elnx+elny)
}
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.