build_bitstring {datafsm}R Documentation

Builds Bitstring

Description

build_bitstring creates a bitstring from an action vector, state matrix, and number of actions.

Usage

build_bitstring(action_vec, state_mat, actions)

Arguments

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.

Value

Returns numeric vector bitstring.


[Package datafsm version 0.2.4 Index]