votes
    Preparing search index...

    Class RandomizedCondorcet<C>

    Type Parameters

    • C extends string

    Hierarchy

    • RandomMatrixMethod<C>
      • RandomizedCondorcet
    Index
    candidates: C[]
    rng: () => number
    isRandom: true
    needsBallot: boolean = false
    needsMatrix: true
    • Returns C[][]

    • Ranking built by repeated wins instead of the method's own full ranking: run the method, record the winning tier, then re-run it restricted to the remaining candidates for the next place, and so on.

      Differs from ranking() whenever the method's full ranking disagrees with how it ranks subsets — e.g. instant runoff orders losers by elimination time, while iterating re-elects a winner at every place.

      Returns C[][]

    • Type Parameters

      • D extends string

      Parameters

      • candidates: D[]

      Returns RandomMatrixMethod<D>

    • Type Parameters

      • D extends string

      Parameters

      • candidates: D[]

      Returns D[][]