This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns markov | |
| (use clojure.test)) | |
| ;; ---------- basic markov chain utils and API ---------- | |
| (defn n-grams | |
| "Partition seq s into all sequential groups of n items" | |
| [n s] | |
| (partition n 1 (repeat nil) s)) |
NewerOlder