All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jbpt.bp.sim.RelSetSimilarity Maven / Gradle / Ivy

package org.jbpt.bp.sim;

import org.jbpt.alignment.Alignment;
import org.jbpt.bp.RelSet;
import org.jbpt.hypergraph.abs.IEntity;
import org.jbpt.hypergraph.abs.IEntityModel;

/**
 * Interface for all similarities that build upon
 * relation sets.
 * 
 * @author matthias.weidlich, matthias.kunze
 *
 */
public interface RelSetSimilarity, M extends IEntityModel, N extends IEntity> {
	
	/**
	 * Returns the name of the similarity measure
	 */
	public String getName();
		
	/**
	 * Scores the similarity of two relation sets that are 
	 * related to each other by the alignment given as input.
	 * 
	 * This score is based on the Jaccard Coefficient.
	 * 
	 * @param alignment, that establishes the relation between two relation sets
	 * @return the similarity score for the two relation sets under the given alignment
	 */
	public double score(Alignment alignment);

	/**
	 * Scores the similarity of two relation sets that are 
	 * related to each other by the alignment given as input.
	 *
 	 * This score is based on the Dice Coefficient.
	 *
	 * @param alignment, that establishes the relation between two relation sets
	 * @return the similarity score for the two relation sets under the given alignment
	 */
	public double scoreDice(Alignment alignment);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy