src/core/reinforcement/agent/DeepAgent.java
public void respond(double reward) {
        stateTransition.reward = reward;
        if (!episodic) {
            averageReward = averageReward == Double.NEGATIVE_INFINITY ? reward : rewardTau * averageReward + (1 - rewardTau) * reward;
            stateTransition.reward -= averageReward;
        }
    }
/**
     * Assigns immediate reward from environment in response to action agent executed.
     *
     * @param reward immediate reward.
     */
Assigns immediate reward from environment in response to action agent executed.

@param reward immediate reward.
Assigns immediate reward from environment in response to action agent executed . @param reward immediate reward .
public void respond(double reward) {
        stateTransition.reward = reward;
        if (!episodic) {
            averageReward = averageReward == Double.NEGATIVE_INFINITY ? reward : rewardTau * averageReward + (1 - rewardTau) * reward;
            stateTransition.reward -= averageReward;
        }
    }
public void respond ( double reward ) { stateTransition . reward = reward ; if ( ! episodic ) { averageReward = averageReward == Double . NEGATIVE_INFINITY ? reward : rewardTau * averageReward + ( 1 - rewardTau ) * reward ; stateTransition . reward -= averageReward ; } }
Assigns immediate reward from environment in response to action agent executed.
Assigns immediate reward from environment in response to action agent executed .