slib.sml.sm.core.metrics.ic.topo
Class ICi_harispe_2012

java.lang.Object
  extended by slib.sml.sm.core.metrics.utils.LogBasedMetric
      extended by slib.sml.sm.core.metrics.ic.topo.ICi_harispe_2012
All Implemented Interfaces:
ICtopo, LogBasedMetricInterface

public class ICi_harispe_2012
extends LogBasedMetric
implements ICtopo

Modification of Sanchez et al. IC in order to authorize various non uniformity of ICs among the leafs IC(u) = -log( ( leavesInc(u) / ancsInc(u) ) / (MAX_LEAVES)) with leaves(u) a function computing the set of reachable leaves from a concept considering (in opposition to the Sanchez et al. definition) that the function leavesInc(c) = |{c}| when c is a root. MAX_LEAVES the number of leaves in the graph i.e. the number of leaves reachable from the root ancsInc, the number of inclusive ancestors of a node Original definition IC(u) = -log( ( leaves(u) / ancsInc(u) +1 ) / (MAX_LEAVES + 1)) See Sanchez et al for original definition Sanchez D, Batet M, Isern D: Ontology-based information content computation. Knowledge-Based Systems 2011, 24:297-303.

Author:
Sebastien Harispe

Constructor Summary
ICi_harispe_2012()
           
 
Method Summary
 double compute(double nbLeaves, double nbAncestors, double maxLeaves)
           
 Map<org.openrdf.model.URI,Double> compute(IC_Conf_Topo conf, SM_Engine manager)
          Compute the topological Information Content for the vertices contained by the graph associated to the given engine.
 Map<org.openrdf.model.URI,Double> compute(Map<org.openrdf.model.URI,Integer> allNbOfReachableLeaves, Map<org.openrdf.model.URI,Integer> allNbAncestors)
           
 
Methods inherited from class slib.sml.sm.core.metrics.utils.LogBasedMetric
getLogBase, setLogBase, setLogBase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ICi_harispe_2012

public ICi_harispe_2012()
Method Detail

compute

public Map<org.openrdf.model.URI,Double> compute(Map<org.openrdf.model.URI,Integer> allNbOfReachableLeaves,
                                                 Map<org.openrdf.model.URI,Integer> allNbAncestors)
                                          throws slib.utils.ex.SLIB_Ex_Critic
Parameters:
allNbOfReachableLeaves -
allNbAncestors -
Returns:
Throws:
slib.utils.ex.SLIB_Ex_Critic

compute

public double compute(double nbLeaves,
                      double nbAncestors,
                      double maxLeaves)
Parameters:
nbLeaves -
nbAncestors -
maxLeaves -
Returns:

compute

public Map<org.openrdf.model.URI,Double> compute(IC_Conf_Topo conf,
                                                 SM_Engine manager)
                                          throws slib.utils.ex.SLIB_Ex_Critic
Description copied from interface: ICtopo
Compute the topological Information Content for the vertices contained by the graph associated to the given engine.

Specified by:
compute in interface ICtopo
Parameters:
conf - the configuration defining the measure among other
manager - the engine used to manage the computation
Returns:
a result stack containing the Information Content for each vertices of the graph.
Throws:
slib.utils.ex.SLIB_Ex_Critic


Copyright © 2013. All Rights Reserved.