Skip to content

Instantly share code, notes, and snippets.

@alexperrone
Created November 4, 2016 04:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexperrone/e72d7cf98944c82208ad04794e610117 to your computer and use it in GitHub Desktop.
Save alexperrone/e72d7cf98944c82208ad04794e610117 to your computer and use it in GitHub Desktop.
x <- 0.7
y <- 0.23
x + y # 0.93
LSE <- function(x, y){
exp(log(x) + log(1+exp(log(y) - log(x))))
}
LSE(x, y) # 0.93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment