dnet45/modules/dnet-pace-core/trunk/src/main/java/eu/dnetlib/pace/distance/algo/SortedJaroWinkler.java @ 53171
1 |
package eu.dnetlib.pace.distance.algo; |
---|---|
2 |
|
3 |
import com.wcohen.ss.AbstractStringDistance; |
4 |
|
5 |
/**
|
6 |
* The Class SortedJaroWinkler.
|
7 |
*/
|
8 |
public class SortedJaroWinkler extends SortedSecondStringDistanceAlgo { |
9 |
|
10 |
/**
|
11 |
* Instantiates a new sorted jaro winkler.
|
12 |
*
|
13 |
* @param weight
|
14 |
* the weight
|
15 |
*/
|
16 |
public SortedJaroWinkler(final double weight) { |
17 |
super(weight, new com.wcohen.ss.JaroWinkler()); |
18 |
}
|
19 |
|
20 |
/**
|
21 |
* Instantiates a new sorted jaro winkler.
|
22 |
*
|
23 |
* @param weight
|
24 |
* the weight
|
25 |
* @param ssalgo
|
26 |
* the ssalgo
|
27 |
*/
|
28 |
protected SortedJaroWinkler(final double weight, final AbstractStringDistance ssalgo) { |
29 |
super(weight, ssalgo); |
30 |
}
|
31 |
|
32 |
/*
|
33 |
* (non-Javadoc)
|
34 |
*
|
35 |
* @see eu.dnetlib.pace.distance.DistanceAlgo#getWeight()
|
36 |
*/
|
37 |
@Override
|
38 |
public double getWeight() { |
39 |
return super.weight; |
40 |
}
|
41 |
|
42 |
/*
|
43 |
* (non-Javadoc)
|
44 |
*
|
45 |
* @see eu.dnetlib.pace.distance.SecondStringDistanceAlgo#normalize(double)
|
46 |
*/
|
47 |
@Override
|
48 |
protected double normalize(final double d) { |
49 |
return d; |
50 |
}
|
51 |
|
52 |
}
|