Package me.xdrop.fuzzywuzzy.algorithms
Class WeightedRatio
- java.lang.Object
-
- me.xdrop.fuzzywuzzy.algorithms.BasicAlgorithm
-
- me.xdrop.fuzzywuzzy.algorithms.WeightedRatio
-
- All Implemented Interfaces:
Applicable
public class WeightedRatio extends BasicAlgorithm
-
-
Field Summary
Fields Modifier and Type Field Description static doublePARTIAL_SCALEstatic booleanTRY_PARTIALSstatic doubleUNBASE_SCALE
-
Constructor Summary
Constructors Constructor Description WeightedRatio()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intapply(java.lang.String s1, java.lang.String s2, ToStringFunction<java.lang.String> stringProcessor)-
Methods inherited from class me.xdrop.fuzzywuzzy.algorithms.BasicAlgorithm
apply, getStringFunction, noProcessor, with
-
-
-
-
Field Detail
-
UNBASE_SCALE
public static final double UNBASE_SCALE
- See Also:
- Constant Field Values
-
PARTIAL_SCALE
public static final double PARTIAL_SCALE
- See Also:
- Constant Field Values
-
TRY_PARTIALS
public static final boolean TRY_PARTIALS
- See Also:
- Constant Field Values
-
-
Method Detail
-
apply
public int apply(java.lang.String s1, java.lang.String s2, ToStringFunction<java.lang.String> stringProcessor)- Specified by:
applyin classBasicAlgorithm
-
-