public class MarkovChain extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MarkovChain.Chain
List of possible next characters and their probabilities.
|
| Constructor and Description |
|---|
MarkovChain(InputStream in,
int length)
Creates a chain based on the Reader with a prefix of
length "length".
|
public MarkovChain(InputStream in, int length) throws IOException
in - length - IOExceptionpublic String getBootstrapPrefix()
public int get(String prefix, Random random)
prefix - random - public void dump()
Copyright © 2005–2014 Alfresco Software. All rights reserved.