Skip to content

Instantly share code, notes, and snippets.

@currymj
Created October 17, 2015 23:30
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 currymj/f26441cc01a8f3650e5f to your computer and use it in GitHub Desktop.
Save currymj/f26441cc01a8f3650e5f to your computer and use it in GitHub Desktop.
(defrecord LSH [X b w]
clojure.lang.IFn
(invoke [this v]
(a/floor (a/div (a/add b (a/inner-product X v))
w)))
(applyTo [this args] (clojure.lang.AFn/applyToHelper this args)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment