Table of Contents

Class ActionFrequency<T>

Namespace
LibGameAI.NGrams
Assembly
NGrams.dll

Record containing actions and their frequencies.

public class ActionFrequency<T>

Type Parameters

T

The type of the actions.

Inheritance
ActionFrequency<T>
Inherited Members

Constructors

ActionFrequency()

Creates new action frequency data record.

public ActionFrequency()

Properties

BestAction

The most likely/frequent action.

public T BestAction { get; }

Property Value

T

Total

Number of times the sequence associated to these actions has been executed.

public int Total { get; }

Property Value

int

Methods

IncrementFrequency(T)

Increment the frequency of the specified action.

public void IncrementFrequency(T action)

Parameters

action T

The action for which the frequency will be incremented.