votes
    Preparing search index...

    Class RandomDictator<C>

    Type Parameters

    • C extends string

    Hierarchy

    • RandomBallotMethod<C>
      • RandomDictator
    Index

    Constructors

    Properties

    ballots: Ballot<C>[]
    candidates: C[]
    rng: () => number
    isRandom: true
    needsBallot: true
    needsMatrix: boolean = false

    Accessors

    Methods

    • Returns C[][]

    • Return a new instance of the same method restricted to a subset of candidates. Ballots are filtered to remove candidates not in the subset; unranked candidates are NOT appended (preserves only opinions voters expressed).

      Type Parameters

      • D extends string

      Parameters

      • candidates: D[]

      Returns BallotMethod<D>

    • Type Parameters

      • D extends string

      Parameters

      • candidates: D[]

      Returns D[][]