diff --git a/docs-source/source/reference/core/index.rst b/docs-source/source/reference/core/index.rst index 8c28882..1542a50 100644 --- a/docs-source/source/reference/core/index.rst +++ b/docs-source/source/reference/core/index.rst @@ -1,6 +1,8 @@ Core ==== +.. automodule:: prefsampling.core + .. automodule:: prefsampling.core.composition :members: diff --git a/docs-source/source/reference/ordinal/index.rst b/docs-source/source/reference/ordinal/index.rst index 6625377..bc3a3ff 100644 --- a/docs-source/source/reference/ordinal/index.rst +++ b/docs-source/source/reference/ordinal/index.rst @@ -1,6 +1,8 @@ Ordinal ======= +.. automodule:: prefsampling.ordinal + .. autofunction:: prefsampling.ordinal.identity .. autofunction:: prefsampling.ordinal.impartial diff --git a/docs/_modules/index.html b/docs/_modules/index.html index cd98a9e..679fccd 100644 --- a/docs/_modules/index.html +++ b/docs/_modules/index.html @@ -265,11 +265,11 @@

All modules for which code is available

diff --git a/docs/reference/approval/index.html b/docs/reference/approval/index.html index 74da6ca..de5f4d9 100644 --- a/docs/reference/approval/index.html +++ b/docs/reference/approval/index.html @@ -317,14 +317,12 @@

Contents

  • NoiseType.ZELINKA
  • -
  • concatenation()
  • disjoint_resampling()
  • empty()
  • euclidean()
  • full()
  • identity()
  • impartial()
  • -
  • mixture()
  • moving_resampling()
  • noise()
  • resampling()
  • @@ -375,29 +373,6 @@

    Contents

    -
    -
    -concatenation(list_of_num_voters: list, num_candidates: int, list_of_cultures: list, list_of_params: list) list[set[int]][source]#
    -

    Generates a concatenation of approval votes from different cultures.

    -
    -
    Parameters:
    -
      -
    • list_of_num_voters (int) – List of numbers of voters to be sampled from each culture.

    • -
    • num_candidates (int) – Number of Candidates.

    • -
    • list_of_cultures (list,) – List of the cultures.

    • -
    • list_of_params (list,) – List of params for each considered culture -(excluding the number of voters and the number of candidates).

    • -
    -
    -
    Returns:
    -

    Approval votes.

    -
    -
    Return type:
    -

    list[set[int]]

    -
    -
    -
    -
    disjoint_resampling(num_voters: int, num_candidates: int, phi: float, p: float, g: int = 2, seed: int = None) list[set[int]][source]#
    @@ -555,34 +530,6 @@

    Contents

    -
    -
    -mixture(num_voters: int, num_candidates: int, weights: list, list_of_cultures: list, list_of_params: list, seed: int = None) list[set[int]][source]#
    -

    Generates a mixture of approval votes from different cultures.

    -
    -
    Parameters:
    -
      -
    • num_voters (int) – Number of Voters.

    • -
    • num_candidates (int) – Number of Candidates.

    • -
    • weights (list) – Probability of being sampled from a given culture

    • -
    • list_of_cultures (list,) – List of the cultures.

    • -
    • list_of_params (list,) – List of params for each considered culture -(excluding the number of voters and the number of candidates).

    • -
    • seed (int) – Seed for numpy random number generator. -Note that this is only the seed for this function. -If you want to use particular seed for the functions generating votes, -you should pass it as argument within the list of params.

    • -
    -
    -
    Returns:
    -

    Approval votes.

    -
    -
    Return type:
    -

    list[set[int]]

    -
    -
    -
    -
    moving_resampling(num_voters: int, num_candidates: int, phi: float, p: float, num_legs: int = 1, seed: int = None) list[set[int]][source]#
    @@ -772,14 +719,12 @@

    Contents

  • NoiseType.ZELINKA
  • -
  • concatenation()
  • disjoint_resampling()
  • empty()
  • euclidean()
  • full()
  • identity()
  • impartial()
  • -
  • mixture()
  • moving_resampling()
  • noise()
  • resampling()
  • diff --git a/docs/reference/core/index.html b/docs/reference/core/index.html index 417fe9e..8b99b05 100644 --- a/docs/reference/core/index.html +++ b/docs/reference/core/index.html @@ -309,6 +309,8 @@

    Contents