View source: R/biproportional-lower.R
find_divisor | R Documentation |
Find a divisor between divisor_from
and divisor_to
such that
sum(round_func(votes/divisor))
equals target_seats
find_divisor(votes, divisor_from, divisor_to, target_seats, round_func)
votes |
votes (matrix with only one column or vector, allows to use row/colnames
within |
divisor_from |
lower bound for divisor search range (is decreased if necessary) |
divisor_to |
upper bound for divisor search range (is increased if necessary) |
target_seats |
number of seats to distribute (single number) |
round_func |
rounding function |
divisor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.