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 action,
	double reward,
	int nextState
)

Parameters

previousState
Type: System..::.Int32
Previous state.
action
Type: System..::.Int32
Action, which leads from previous to the next state.
reward
Type: System..::.Double
Reward value, received by taking specified action from previous state.
nextState
Type: System..::.Int32
Next state.

See Also