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 boolean
shouldStop(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.StoppingCriterion
Determines if the computation should be stopped.- Specified by:
shouldStop
in interfaceSpectralRanking.StoppingCriterion
- Parameters:
spectralRanking
- the instance incapsulating the computation.- Returns:
- true if the computation should be stopped.
-