Function reference
-
dirichlet_tree
- Create a Dirichlet-tree for modelling ranked ballots
-
dirtree()
- Create a Dirichlet-tree object
-
update(<dirichlet_tree>)
- Update a
dirichlet_tree
model by observing some ranked ballots.
-
reset()
- Clear the internal state of a
dirichlet_tree
object.
-
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_ballots
from a file.
-
write_ballots()
- Write
ranked_ballots
to a file.
-
ranked_ballots()
- Construct a set of ranked ballots.
-
`[`(<ranked_ballots>)
- Access Subsets of Ballots.