net.sourceforge.nite.datainspection.timespan
Class DiscretizationBasedBoundaryToClassificationFactory

java.lang.Object
  extended by net.sourceforge.nite.datainspection.timespan.DiscretizationBasedBoundaryToClassificationFactory

public class DiscretizationBasedBoundaryToClassificationFactory
extends java.lang.Object

This class makes classifications from boundary lists by discretizing the timeline into items and using True or False as Value depending on whether the boundarylist contained a boundary in that segment. Used by BoundaryBasedInspection2 This class works in two step:
1) make a list of items ('time spans') that are to be used for all annotators
2) given the list of Items, and a boundarylist, generate a Classification. See design on paper for documentation


Constructor Summary
DiscretizationBasedBoundaryToClassificationFactory()
           
 
Method Summary
static java.util.List generateDiscretizedItems(double endtime, double th)
          Make a list of items ('time spans') that are to be used for all annotators by discretizing the timeline from 0 to endtime (usually obtained from getCorpusEndTime) in segments of 'th' duration.
static Classification makeClassificationsFromBoundaryList(java.util.List boundaryList, java.util.List items)
          Given the list of Items generated by generateDiscretizedItems, and a boundarylist, generate a Classification.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscretizationBasedBoundaryToClassificationFactory

public DiscretizationBasedBoundaryToClassificationFactory()
Method Detail

generateDiscretizedItems

public static java.util.List generateDiscretizedItems(double endtime,
                                                      double th)
Make a list of items ('time spans') that are to be used for all annotators by discretizing the timeline from 0 to endtime (usually obtained from getCorpusEndTime) in segments of 'th' duration.


makeClassificationsFromBoundaryList

public static Classification makeClassificationsFromBoundaryList(java.util.List boundaryList,
                                                                 java.util.List items)
Given the list of Items generated by generateDiscretizedItems, and a boundarylist, generate a Classification. Values are True if the boundarylist contains a boundary within the TimespanItem.