generate_unif_continuous: Generates a simulation of voting according to a uniform law,...

View source: R/main.R

generate_unif_continuousR Documentation

Generates a simulation of voting according to a uniform law, returns voters preferences

Description

Generates a simulation of voting according to a uniform law, returns voters preferences

Usage

generate_unif_continuous(n_voters, n_candidates, min = 0, max = 1)

Arguments

n_voters

integer, represents the number of voters in the election

n_candidates

integer, represents the number of candidates in the election

min

int, the minimum value of the range of possible scores (by default 0)

max

int, the maximum value of the range of possible scores (by default 1)

Value

scores

Examples

voting_situation<- generate_unif_continuous(n_voters=10, n_candidates=3, min=0, max=10)

voteSim documentation built on May 29, 2024, 6:44 a.m.