public class TotalRankSolverRankingWeightFactory extends Object implements SolverRankingWeightFactory
SolverRankingWeightFactory
orders a SolverBenchmarkResult
by how how many time each of it's
SingleBenchmarkResult
beat the SingleBenchmarkResult
of the other SolverBenchmarkResult
s.
It maximizes the overall ranking.
When the inputSolutions differ greatly in size or difficulty, this often produces a difference in
Score
magnitude between each Solution
. For example: score 10 for dataset A versus 1000 for dataset B.
In such cases, this ranking is more fair than TotalScoreSolverRankingComparator
,
because in this ranking, dataset B wouldn't marginalize dataset A.
Modifier and Type | Class and Description |
---|---|
static class |
TotalRankSolverRankingWeightFactory.TotalRankSolverRankingWeight |
Constructor and Description |
---|
TotalRankSolverRankingWeightFactory() |
Modifier and Type | Method and Description |
---|---|
Comparable |
createRankingWeight(List<SolverBenchmarkResult> solverBenchmarkResultList,
SolverBenchmarkResult solverBenchmarkResult)
The ranking function.
|
public Comparable createRankingWeight(List<SolverBenchmarkResult> solverBenchmarkResultList, SolverBenchmarkResult solverBenchmarkResult)
SolverRankingWeightFactory
createRankingWeight
in interface SolverRankingWeightFactory
solverBenchmarkResultList
- never nullsolverBenchmarkResult
- never nullCopyright © 2006–2016 JBoss by Red Hat. All rights reserved.