build_bitstring
creates a bitstring from an action vector, state
matrix, and number of actions.
build_bitstring(action_vec, state_mat, actions)
action_vec | Numeric vector indicating what action to take for each state. |
---|---|
state_mat | Numeric matrix with rows as states and columns as predictors. |
actions | Numeric vector length one with the number of actions. |
Returns numeric vector bitstring.