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

Profile generator using the ‘Cubic uniform’ model.

Each coefficient preferences_ut[v, c] is drawn independently and uniformly in the interval [-1, 1]. The ordinal part of this distribution is the Impartial Culture.

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

  • n_c (int) – Number of candidates.

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

Examples

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