Package it.unimi.dsi.law.rank
Class SpectralRanking.IterationNumberStoppingCriterion
java.lang.Object
it.unimi.dsi.law.rank.SpectralRanking.IterationNumberStoppingCriterion
- All Implemented Interfaces:
SpectralRanking.StoppingCriterion
- Enclosing class:
- SpectralRanking
public static class SpectralRanking.IterationNumberStoppingCriterion extends Object implements SpectralRanking.StoppingCriterion
A stopping criterion that stops whenever the number of iterations exceeds a given bound.
-
Constructor Summary
Constructors Constructor Description IterationNumberStoppingCriterion(int maxIter)Creates an instance with a given number of iterations. -
Method Summary
Modifier and Type Method Description booleanshouldStop(SpectralRanking spectralRanking)Determines if the computation should be stopped.
-
Constructor Details
-
IterationNumberStoppingCriterion
public IterationNumberStoppingCriterion(int maxIter)Creates an instance with a given number of iterations.- Parameters:
maxIter- the maximum number of iterations.
-
-
Method Details
-
shouldStop
Description copied from interface:SpectralRanking.StoppingCriterionDetermines if the computation should be stopped.- Specified by:
shouldStopin interfaceSpectralRanking.StoppingCriterion- Parameters:
spectralRanking- the instance incapsulating the computation.- Returns:
- true if the computation should be stopped.
-