Surveys and aggregation#

taupy.analysis.voting.survey(p, *, positions, not_present_value=None)[source]#

Take a survey about proposition p among positions. This function is agnostic about truth values attributed to p. These could be True and False assuming a two-valued logic. If any position does not pass a judgement on p, they respond not_present_value to the survey.

taupy.analysis.voting.majority_vote_winner(p, *, positions, not_present_value=None)[source]#

Cast a simple majority vote about p among positions and return the winner. This function checks whether the winner would be unique. A value error is returned if no winner can be determined due to a tie.

taupy.analysis.voting.aggregated_position_of_winners(positions, *, not_present_value=None)[source]#

Return a Position that is aggregated from the input positions by majority voting.