getReward: Check for Reward Outcome

Description Usage Arguments Value

View source: R/rewards.R

Description

the getReward function determines whether a reward is delivered (1) or not (0) based off of a binary payoff with probability either 0.2 or 0.8 that have, on each trial, a little bit of gaussian noise following the normal distribution with mean 0 and SD 0.025. See updateRewardProb

Usage

1

Arguments

state

The state, or image, for which a reward might be received.

Value

Binary reward (1 or 0) based off of the relevant state probability.


jdtrat/dynaq documentation built on July 24, 2020, 7:18 a.m.