elections.dtree 2.0.0
- Rewrote the package to use
prefiofor handling ballots. - Added the function
social_choicefor computing election results explicitly. - Improved documentation in README.
1.1.2
- 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.
1.1.1
Fixed a bug in the dirichlet_tree$sample_posterior method where specifying n_threads=x would result in x+1 threads spawning.
1.1.0
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.