decode_action_vec {datafsm} | R Documentation |
Decodes Action Vector
Description
decode_action_vec
decodes action vector.
Usage
decode_action_vec(string, states, inputs, actions)
Arguments
string |
Numeric (integer) vector of only 1's and 0's. |
states |
Numeric vector with the number of states, which is the number of rows. |
inputs |
Numeric vector length one, with the number of columns. |
actions |
Numeric vector with the number of actions. Actions (and states) determine how many binary elements we need to represent an element of the action (or state) matrix. |
Details
This function takes a solution string of binary values in Gray representation, transforms it to a decimal representation, then puts it in matrix form with the correct sized matrices, given the specified numbers of states, inputs, and actions.
Value
Returns numeric (integer) vector.
[Package datafsm version 0.2.4 Index]