CumReward: Cumulative Reward

Description Usage Arguments Value Examples

View source: R/utils.R

Description

CumReward() is a utility function that computes cumulative reward for discounted MDP.

Usage

1
CumReward(rewards, discount)

Arguments

rewards

a numeric vector of reward sequence

discount

a numeric number between 0 and 1

Value

a numeric number for cumulative reward

Examples

1
CumReward(c(1, 1, 0, 1), 0.9)

XiaoqiLu/PhD-Thesis documentation built on March 1, 2021, 10:49 a.m.