- Rewrote the package to use
prefiofor handling ballots.
- Added the function
social_choicefor computing election results explicitly.
- Improved documentation in README.
- Improved the
sample_posteriormultithreading so that the remainder is spread out among the worker threads instead of the entire workload being run on the head process.
- Fixed an issue where sampling from a tree with the
n_ballotsparameter set to a value fewer than the number of observed ballots replacement raises an error.
Fixed a bug in the
dirichlet_tree$sample_posterior method where specifying
n_threads=x would result in
x+1 threads spawning.
Added a logical parameter
replace to the
sample_posterior methods. This flag allows you to sample from the posterior distribution without reusing the ballots in the sample.
- Patched concurrency functionality for
sample_posteriorwhich prevented compilation on