Count number in each state

get_previous_counts(agent_states, n_states)

Arguments

agent_states

vector of length agent_states where each has a value of -1, 0, ..., K-1.

n_states

number of total states since we will use zeros

Value

We return a vector of length K of counts, the number in state 0 through K-S