dnet45/modules/dnet-pace-core/trunk/src/main/java/eu/dnetlib/pace/distance/DistanceAlgo.java @ 53193
1 |
package eu.dnetlib.pace.distance; |
---|---|
2 |
|
3 |
import eu.dnetlib.pace.model.Field; |
4 |
|
5 |
/**
|
6 |
* Each field is configured with a distance algo which knows how to compute the distance (0-1) between the fields of two
|
7 |
* objects.
|
8 |
*/
|
9 |
public interface DistanceAlgo { |
10 |
|
11 |
public abstract double distance(Field a, Field b); |
12 |
|
13 |
public double getWeight(); |
14 |
|
15 |
}
|