Function reference
-
dirichlet_tree - Create a Dirichlet-tree for modelling ranked ballots
-
dirtree() - Create a Dirichlet-tree object
-
update(<dirichlet_tree>) - Update a
dirichlet_treemodel by observing some ranked ballots.
-
reset() - Clear the internal state of a
dirichlet_treeobject.
-
sample_posterior() - Draw election outcomes from the posterior distribution.
-
sample_predictive() - Draw ballots from the posterior predictive distribution.
Evaluating social choice function(s).
Functions for evaluating social choice functions on ballots. Currently only IRV and plurality are implemented.
-
social_choice() - Election Social Choice Functions
DEPRECATED! Reading and writing ranked ballot data
Legacy functions for reading and writing ranked ballot .txt files.
-
read_ballots() - Read
ranked_ballotsfrom a file.
-
write_ballots() - Write
ranked_ballotsto a file.
-
ranked_ballots() - Construct a set of ranked ballots.
-
`[`(<ranked_ballots>) - Access Subsets of Ballots.