dnet40/modules/dnet-pace-core/branches/1.2/src/main/java/eu/dnetlib/pace/distance/Distance.java @ 28483
1 |
package eu.dnetlib.pace.distance; |
---|---|
2 |
|
3 |
import eu.dnetlib.pace.config.Config; |
4 |
|
5 |
/**
|
6 |
* The Interface Distance.
|
7 |
*
|
8 |
* @param <A>
|
9 |
* the generic type
|
10 |
*/
|
11 |
public interface Distance<A> { |
12 |
|
13 |
/**
|
14 |
* Computes the distance between two objects, given a configuration.
|
15 |
*
|
16 |
* @param a
|
17 |
* the a
|
18 |
* @param b
|
19 |
* the b
|
20 |
* @param config
|
21 |
* the config
|
22 |
* @return the double
|
23 |
*/
|
24 |
public double between(A a, A b, Config config); |
25 |
}
|