src/core/reinforcement/memory/PriorityMemory.java
public void update(StateTransition stateTransition) {
        double epsilon = 10E-8;
        stateTransition.priority = Math.pow(Math.abs(stateTransition.tdError) + epsilon, alpha);
        sumTree.update(stateTransition);
    }
/**
     * Updates state transition into PriorityMemory with new error value.
     *
     * @param stateTransition state transition to be updated.
     */
Updates state transition into PriorityMemory with new error value.

@param stateTransition state transition to be updated.
Updates state transition into PriorityMemory with new error value . @param stateTransition state transition to be updated .
public void update(StateTransition stateTransition) {
        double epsilon = 10E-8;
        stateTransition.priority = Math.pow(Math.abs(stateTransition.tdError) + epsilon, alpha);
        sumTree.update(stateTransition);
    }
public void update ( StateTransition stateTransition ) { double epsilon = 10E-8 ; stateTransition . priority = Math . pow ( Math . abs ( stateTransition . tdError ) + epsilon , alpha ) ; sumTree . update ( stateTransition ) ; }
Updates state transition into PriorityMemory with new error value.
Updates state transition into PriorityMemory with new error value .