Click or drag to resize

GeneratorMarkovRandomInt Method (Single)

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
Syntax
C#
public static IGenerator<int> MarkovRandomInt(
	float[,] transitionTable
)

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.

Return Value

Type: IGeneratorInt32
A new generator.
See Also