public class Markov extends Object
Constructor and Description |
---|
Markov(Reader in,
int length)
Creates a chain based on the Reader with a prefix of length "length".
|
Modifier and Type | Method and Description |
---|---|
void |
dump()
Prints the contents of the Markov graph.
|
int |
get(String prefix,
Random random)
Returns the next character to print given the prefix.
|
String |
getBootstrapPrefix()
Returns the first "length" characters that were read.
|
public Markov(Reader in, int length) throws IOException
IOException
public String getBootstrapPrefix()
public int get(String prefix, Random random)
public void dump()
Copyright © 2017 Open Knowledge Management System S.L.. All rights reserved.