 | GeneratorMarkovRandomInt Method (Single, Int32) |
Generates a Markov chain of integers from a transition table.
Namespace:
Gamelogic.Extensions.Algorithms
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntaxpublic static IGenerator<int> MarkovRandomInt(
float[,] transitionTable,
int seed
)
Parameters
- transitionTable
- Type: SystemSingle
The transition table to use. The value in the table
at [i][j] is the relative probability that i will be followed by j. Note that values
in a row need not add to 1, the values are normalized per row. In each row, there
must be at least one positive value. All values must be non-negative. - seed
- Type: SystemInt32
The seed to use for the random number generator.
Return Value
Type:
IGeneratorInt32A new generator.
See Also