public JaccardIndex < K , VV , EV > setMaximumScore ( int numerator , int denominator ) { Preconditions . checkArgument ( numerator >= 0 , "Maximum score numerator must be non-negative" ) ; Preconditions . checkArgument ( denominator > 0 , "Maximum score denominator must be greater than zero" ) ; Preconditions . checkArgument ( numerator <= denominator , "Maximum score fraction must be less than or equal to one" ) ; this . unboundedScores = false ; this . maximumScoreNumerator = numerator ; this . maximumScoreDenominator = denominator ; return this ; }
Filter out Jaccard Index scores greater than the given maximum fraction .