votes
Preparing search index...
MaximalLotteries
Class MaximalLotteries<C>
Type Parameters
C
extends
string
Hierarchy
RandomMatrixMethod
<
C
>
MaximalLotteries
Index
Constructors
constructor
Properties
candidates
rng
is
Random
needs
Ballot
needs
Matrix
Accessors
matrix
Methods
canonical
Ranking
de
Tie
ranking
restrict
restrict
Ranking
scores
Constructors
constructor
new
MaximalLotteries
<
C
extends
string
>
(
i
:
Matrix
<
C
>
&
{
rng
?:
()
=>
number
}
,
)
:
MaximalLotteries
<
C
>
Type Parameters
C
extends
string
Parameters
i
:
Matrix
<
C
>
&
{
rng
?:
()
=>
number
}
Returns
MaximalLotteries
<
C
>
Properties
Readonly
candidates
candidates
:
C
[]
Protected
Readonly
rng
rng
:
()
=>
number
Static
Readonly
is
Random
isRandom
:
true
Static
Readonly
needs
Ballot
needsBallot
:
boolean
= false
Static
Readonly
needs
Matrix
needsMatrix
:
true
Accessors
matrix
get
matrix
()
:
Matrix
<
C
>
Returns
Matrix
<
C
>
Methods
canonical
Ranking
canonicalRanking
()
:
C
[]
[]
Returns
C
[]
[]
de
Tie
deTie
()
:
C
[]
[]
Returns
C
[]
[]
ranking
ranking
()
:
C
[]
[]
Returns
C
[]
[]
restrict
restrict
<
D
extends
string
>
(
candidates
:
D
[]
)
:
RandomMatrixMethod
<
D
>
Type Parameters
D
extends
string
Parameters
candidates
:
D
[]
Returns
RandomMatrixMethod
<
D
>
restrict
Ranking
restrictRanking
<
D
extends
string
>
(
candidates
:
D
[]
)
:
D
[]
[]
Type Parameters
D
extends
string
Parameters
candidates
:
D
[]
Returns
D
[]
[]
scores
scores
()
:
ScoreObject
<
C
>
Returns
ScoreObject
<
C
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
candidates
rng
is
Random
needs
Ballot
needs
Matrix
Accessors
matrix
Methods
canonical
Ranking
de
Tie
ranking
restrict
restrict
Ranking
scores
votes
Loading...