integerise | R Documentation |
This function will generate the closest integer array to the fractional population provided, preserving the sums in every dimension.
integerise(population)
population |
a numeric vector of state occupation probabilities. Must sum to unity (to within double precision epsilon) |
an integer vector of frequencies that sums to pop.
prob2IntFreq(c(0.1,0.2,0.3,0.4), 11)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.