it.polito.elite.doseWS.include
Class TopicCoverage

java.lang.Object
  extended byit.polito.elite.doseWS.include.TopicCoverage

public class TopicCoverage
extends java.lang.Object

A class for storing data relative to the autonomic policies of the Annotation Repository, stores concepts together with their frequencies in terms of indexed resources, for detecting low covered conceptual areas in the ontology

Since:
11/2004
Version:
1.0
Author:
Dario Bonino Alessio Bosca Federico Pescarmona Michele Debandi

Constructor Summary
TopicCoverage(TopicFrequency[] array)
          Constructor
TopicCoverage(TopicFrequency[] array, boolean sort)
          Constructor
TopicCoverage(java.util.Vector V)
          Constructor
 
Method Summary
 double coverageMean()
           
 double coverageVariance()
           
 java.lang.String[] getLowCoveredConcepts()
           
 java.lang.String[] getLowCoveredConceptsM()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicCoverage

public TopicCoverage(TopicFrequency[] array,
                     boolean sort)
Constructor

Parameters:
array - the array of TopicFrquency objects to be stored in this TopicCoverage
sort - if true causes the TopicFrequencies to be sorted

TopicCoverage

public TopicCoverage(TopicFrequency[] array)
Constructor

Parameters:
array - the array of TopicFrequency objects to be stored in this TopicCoverage

TopicCoverage

public TopicCoverage(java.util.Vector V)
Constructor

Parameters:
V - the Vector of topic frequencies to be stored in this TopicCoverage
Method Detail

coverageMean

public double coverageMean()
Returns:
the mean value for the coverage frequency of topics contained in this object

coverageVariance

public double coverageVariance()
Returns:
the variance value for the coverage frequency of topics contained in this object

getLowCoveredConcepts

public java.lang.String[] getLowCoveredConcepts()
Returns:
the 10% low covered topics, i.e., the 10% topics having less resources pointing to them by means of semantic annotations

getLowCoveredConceptsM

public java.lang.String[] getLowCoveredConceptsM()
Returns:
the topics having the coverage value under a given fraction of the coverage mean computed as:
coverage < mean - sqrt(variance)