as_vlmc function

Convert an object to a Variable Length Markov Chain (VLMC)