Table of Contents

Interface INGram<T>

Namespace
LibGameAI.NGrams
Assembly
NGrams.dll

Interface for concrete N-Gram implementations.

public interface INGram<T>

Type Parameters

T

The type of the actions.

Properties

NValue

The N in N-Gram (window size + 1).

int NValue { get; }

Property Value

int

Methods

GetMostLikely(IReadOnlyList<T>)

Get the most likely action given a sequence of actions.

T GetMostLikely(IReadOnlyList<T> actions)

Parameters

actions IReadOnlyList<T>

The actions list.

Returns

T

The most likely action for the given a sequence of actions.

RegisterSequence(IReadOnlyList<T>)

Register a sequence of actions.

void RegisterSequence(IReadOnlyList<T> actions)

Parameters

actions IReadOnlyList<T>

The actions list.