update_post: Update a Posterior Distribution

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Takes the current posterior parameters as a prior, and updates them using a single observation: phi and reward.

Usage

1
update_post(phi, reward, posterior)

Arguments

phi

A vector containing the basis expansion of context vector x.

reward

The observed reward for the context vector x.

posterior

A list of the current posterior parameters.

Value

A list containing the updated posterior parameters.


dfcorbin/npbanditC documentation built on March 23, 2020, 5:25 a.m.