slib.sml.sm.core.measures.graph.framework.dag
Class Sim_Framework_DAG_Set_Tversky_1977

java.lang.Object
  extended by slib.sml.sm.core.measures.graph.framework.dag.Sim_Framework_DAG_Set_abstract
      extended by slib.sml.sm.core.measures.graph.framework.dag.Sim_Framework_DAG_Set_Tversky_1977
All Implemented Interfaces:
Sim_Pairwise_DAG, Sim_Groupwise, Sim_Groupwise_Direct, Sim_Pairwise

public class Sim_Framework_DAG_Set_Tversky_1977
extends Sim_Framework_DAG_Set_abstract

Tversky A: Features of similarity. Psychological Review 1977, 84:327-352. Implementation of the contrast model in a set-based manner.

Author:
Sebastien Harispe

Field Summary
static String k_param_name
           
 
Constructor Summary
Sim_Framework_DAG_Set_Tversky_1977()
          Create a Tversky Contrast Model semantic similarity instance with k parameter equals to 0.5
Sim_Framework_DAG_Set_Tversky_1977(double k)
          Create a Tversky Contrast Model semantic similarity instance.
 
Method Summary
 double getK()
           
 boolean isSymmetric()
           
 void setK(double k)
          Setter of the k parameter value
 double sim(Set<org.openrdf.model.URI> ancA, Set<org.openrdf.model.URI> ancB, SMconf conf)
          This provide a way to compare the two sets of concepts which have been extended considering inference based on the taxonomic hierarchy.
 
Methods inherited from class slib.sml.sm.core.measures.graph.framework.dag.Sim_Framework_DAG_Set_abstract
sim, sim
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

k_param_name

public static final String k_param_name
See Also:
Constant Field Values
Constructor Detail

Sim_Framework_DAG_Set_Tversky_1977

public Sim_Framework_DAG_Set_Tversky_1977()
Create a Tversky Contrast Model semantic similarity instance with k parameter equals to 0.5


Sim_Framework_DAG_Set_Tversky_1977

public Sim_Framework_DAG_Set_Tversky_1977(double k)
Create a Tversky Contrast Model semantic similarity instance.

Parameters:
k - the value of the k parameter
Method Detail

sim

public double sim(Set<org.openrdf.model.URI> ancA,
                  Set<org.openrdf.model.URI> ancB,
                  SMconf conf)
           throws slib.utils.ex.SLIB_Exception
Description copied from class: Sim_Framework_DAG_Set_abstract
This provide a way to compare the two sets of concepts which have been extended considering inference based on the taxonomic hierarchy. In other words, each vertex of the set already contains all its ancestors in the set.

Specified by:
sim in class Sim_Framework_DAG_Set_abstract
Parameters:
ancA - the first set
ancB - the second set
conf - the configuration to apply to compute the semantic similarity
Returns:
the similarity of the two sets.
Throws:
slib.utils.ex.SLIB_Exception

getK

public double getK()
Returns:
the value of the k parameter

setK

public void setK(double k)
Setter of the k parameter value

Parameters:
k - the new value of k

isSymmetric

public boolean isSymmetric()


Copyright © 2013. All Rights Reserved.