1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-24 00:38:52 -05:00

* fine-tune fuzzy matching

This commit is contained in:
Reinhard Pointner 2011-12-07 05:43:56 +00:00
parent 703e7024c2
commit e1f76a671b

View File

@ -178,9 +178,9 @@ public enum EpisodeMetrics implements SimilarityMetric {
@Override
public float getSimilarity(Object o1, Object o2) {
// normalize absolute similarity to similarity rank (4 ranks in total),
// normalize absolute similarity to similarity rank (6 ranks in total),
// so we are less likely to fall for false positives in this pass, and move on to the next one
return (float) (floor(super.getSimilarity(o1, o2) * 4) / 4);
return (float) (floor(super.getSimilarity(o1, o2) * 6) / 6);
}