My Project
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Public Member Functions | List of all members
UniExtensions.MarkovGenerator Class Reference

The Markov generator is used to generate random strings (usually words or names) based on an input set of words. More...

Public Member Functions

 MarkovGenerator (IEnumerable< string > samples, int minLength, int order=4)
 
string NextString (int maxAttempts=30)
 Get the next generated string from the generator. MaxAttempts is the maximum number of tried to generate a unique string. More...
 
void Reset ()
 Reset the generator, allowing previously generated strings to be generated again. More...
 

Detailed Description

The Markov generator is used to generate random strings (usually words or names) based on an input set of words.

Constructor & Destructor Documentation

UniExtensions.MarkovGenerator.MarkovGenerator ( IEnumerable< string >  samples,
int  minLength,
int  order = 4 
)
inline

Member Function Documentation

string UniExtensions.MarkovGenerator.NextString ( int  maxAttempts = 30)
inline

Get the next generated string from the generator. MaxAttempts is the maximum number of tried to generate a unique string.

Returns
The string.
void UniExtensions.MarkovGenerator.Reset ( )
inline

Reset the generator, allowing previously generated strings to be generated again.


The documentation for this class was generated from the following file: