powered by
This function will generate the closest integer array to the fractional population provided, preserving the sums in every dimension.
integerise(population)
an integer vector of frequencies that sums to pop.
a numeric vector of state occupation probabilities. Must sum to unity (to within double precision epsilon)
prob2IntFreq(c(0.1,0.2,0.3,0.4), 11)
Run the code above in your browser using DataLab