Skip to content

Instantly share code, notes, and snippets.

@jtobin
Created October 10, 2012 14:01
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 jtobin/3865828 to your computer and use it in GitHub Desktop.
Save jtobin/3865828 to your computer and use it in GitHub Desktop.
Single-threaded Rosenbrock
logRosenbrockDensity :: [Double] -> Double
logRosenbrockDensity [x0, x1] = (-1)*(100*(x1 - (x0^2))^2 + (1 - x0)^2) / 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment