slib.sml.sm.core.measures.graph.pairwise.dag.edge_based
Class Sim_pairwise_DAG_edge_Rada_1989
java.lang.Object
slib.sml.sm.core.measures.graph.pairwise.dag.edge_based.Sim_DAG_edge_abstract
slib.sml.sm.core.measures.graph.pairwise.dag.edge_based.Sim_pairwise_DAG_edge_Rada_1989
- All Implemented Interfaces:
- Sim_Pairwise_DAG, Sim_Pairwise
public class Sim_pairwise_DAG_edge_Rada_1989
- extends Sim_DAG_edge_abstract
Rada R, Mili H, Bicknell E, Blettner M: Development and application of a
metric on semantic nets. Ieee Transactions On Systems Man And Cybernetics
1989, 19:17-30.
In this implementation no restriction is made on the shortest path, i.e. if the underlying data structure
is a DAG the shortest path can in some case not contain a common ancestor of the compared concepts.
Method Summary |
boolean |
isSymmetric()
|
double |
sim(double distSourceTarget)
Compute the Rada similarity given the distance of the shortest path linking the two concepts. |
double |
sim(org.openrdf.model.URI a,
org.openrdf.model.URI b,
SM_Engine c,
SMconf conf)
Compute the semantic similarity of the pair of concepts/classes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Sim_pairwise_DAG_edge_Rada_1989
public Sim_pairwise_DAG_edge_Rada_1989()
sim
public double sim(org.openrdf.model.URI a,
org.openrdf.model.URI b,
SM_Engine c,
SMconf conf)
throws slib.utils.ex.SLIB_Ex_Critic
- Description copied from interface:
Sim_Pairwise
- Compute the semantic similarity of the pair of concepts/classes.
- Parameters:
a
- the first concept/classb
- the second concept/classc
- the engine used to access information required by the measuresconf
- the configuration to consider
- Returns:
- the similarity between the pair of concept/class.
- Throws:
slib.utils.ex.SLIB_Ex_Critic
sim
public double sim(double distSourceTarget)
- Compute the Rada similarity given the distance of the shortest path linking the two concepts.
- Parameters:
distSourceTarget
-
- Returns:
- the similarity
isSymmetric
public boolean isSymmetric()
Copyright © 2013. All Rights Reserved.