src/core/reinforcement/value/AbstractValueFunction.java
public void update(StateTransition stateTransition) throws NeuralNetworkException, MatrixException {
        StateTransition currentStateTransition = stateTransition;
        TreeSet<StateTransition> stateTransitions = new TreeSet<>();
        while (currentStateTransition != null) {
            stateTransitions.add(currentStateTransition);
            currentStateTransition = currentStateTransition.previousStateTransition;
        }

        updateValue(stateTransitions);
    }
/**
     * Updates values for current state transition chain.
     *
     * @param stateTransition state transition.
     * @throws MatrixException throws exception if matrix operation fails.
     * @throws NeuralNetworkException throws exception if neural network operation fails.
     */
Updates values for current state transition chain.
@param stateTransition state transition.
@throws MatrixException throws exception if matrix operation fails.
@throws NeuralNetworkException throws exception if neural network operation fails.
Updates values for current state transition chain . @param stateTransition state transition . @throws MatrixException throws exception if matrix operation fails . @throws NeuralNetworkException throws exception if neural network operation fails .
public void update(StateTransition stateTransition) throws NeuralNetworkException, MatrixException {
        StateTransition currentStateTransition = stateTransition;
        TreeSet<StateTransition> stateTransitions = new TreeSet<>();
        while (currentStateTransition != null) {
            stateTransitions.add(currentStateTransition);
            currentStateTransition = currentStateTransition.previousStateTransition;
        }
        updateValue(stateTransitions);
    }
public void update ( StateTransition stateTransition ) throws NeuralNetworkException , MatrixException { StateTransition currentStateTransition = stateTransition ; TreeSet < StateTransition > stateTransitions = new TreeSet < > ( ) ; while ( currentStateTransition != null ) { stateTransitions . add ( currentStateTransition ) ; currentStateTransition = currentStateTransition . previousStateTransition ; } updateValue ( stateTransitions ) ; }
Updates values for current state transition chain.
Updates values for current state transition chain .