Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 562 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 562 Bytes

cl-markov-chains

A library for modeling Markov chains in Common Lisp.

It works with multiple data types and first- as well as nth-order chains.

Usage examples

(generate (analyze '(sunny rainy rainy sunny sunny rainy sunny sunny sunny sunny rainy rainy rainy) 1) 10)

-> (SUNNY SUNNY RAINY SUNNY SUNNY SUNNY RAINY RAINY RAINY RAINY)
(generate (analyze "aaabcbbdeeeaafafcbeefabc" 1) 30)

-> "abeafcbeeaafaafcbdeeefafcbefaa"

Todo

  • documentation
  • transition matrix representation
  • model properties
  • ...

License

MIT