forked from D-Net/dnet-hadoop
22 lines
481 B
Java
22 lines
481 B
Java
package eu.dnetlib.pace.distance;
|
|
|
|
import eu.dnetlib.pace.model.Field;
|
|
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* Each field is configured with a distance algo which knows how to compute the distance (0-1) between the fields of two
|
|
* objects.
|
|
*/
|
|
public interface DistanceAlgo {
|
|
|
|
public abstract double distance(Field a, Field b);
|
|
|
|
public double getWeight();
|
|
public Map<String, Number> getParams();
|
|
|
|
public void setWeight(double w);
|
|
public void setParams(Map<String, Number> params);
|
|
|
|
}
|