Description Usage Arguments Value
View source: R/simulate-agents.R
Count number in each state
1 | get_previous_counts(agent_states, n_states)
|
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 |
We return a vector of length K of counts, the number in state 0 through K-S
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.