Update Q-function's value for the previous state-action pair.

Namespace:  AForge.MachineLearning
Assembly:  AForge.MachineLearning (in AForge.MachineLearning.dll) Version: 2.2.4.0 (2.2.4.0)

Syntax

C#
public void UpdateState(
	int previousState,
	int previousAction,
	double reward
)

Parameters

previousState
Type: System..::.Int32
Curren state.
previousAction
Type: System..::.Int32
Action, which lead from previous to the next state.
reward
Type: System..::.Double
Reward value, received by taking specified action from previous state.

Remarks

Updates Q-function's value for the previous state-action pair in the case if the next state is terminal.

See Also