class svvamp.GeneratorProfileIc(n_v, n_c, sort_voters=False)[source]

Profile generator using the ‘Impartial Culture’ model.

Parameters:
  • n_v (int) – Number of voters.

  • n_c (int) – Number of candidates.

  • sort_voters (bool) – This argument is passed to Profile.

Notes

The ranking of each voter is drawn independently and uniformly.

Examples

>>> generator = GeneratorProfileIc(n_v=10, n_c=3)
>>> profile = generator()
>>> profile.preferences_rk.shape
(10, 3)