csli.util.classify.berkeley
Class FeatureSetMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.TreeMap
          extended by csli.util.classify.berkeley.FeatureSetMap
All Implemented Interfaces:
Serializable, Cloneable, Map, NavigableMap, SortedMap

public class FeatureSetMap
extends TreeMap

A TreeMap extension for feature data - a map from keys to FeatureSets (values for a set of features). Keys are Objects or small-d doubles (intended to be times or utterance start times). Values are FeatureSets (intended to be the corresponding set of values for a set of features at this time). As it's a TreeMap, keys will be returned in ascending order.

Author:
mpurver
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
FeatureSetMap()
          Initialise as an empty hash
 
Method Summary
 boolean add(FeatureMap map)
          Add a FeatureMap (vector of keyed values for one feature) to this FeatureSetMap
 FeatureSet get(double key)
          Convenient interface to TreeMap for small-d doubles
 void put(double key, FeatureSet value)
          Convenient interface to TreeMap for small-d doubles
 
Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, size, subMap, subMap, tailMap, tailMap, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode, isEmpty
 

Constructor Detail

FeatureSetMap

public FeatureSetMap()
Initialise as an empty hash

Method Detail

put

public void put(double key,
                FeatureSet value)
Convenient interface to TreeMap for small-d doubles

Parameters:
key -
value -

get

public FeatureSet get(double key)
Convenient interface to TreeMap for small-d doubles

Parameters:
key -
Returns:
value

add

public boolean add(FeatureMap map)
Add a FeatureMap (vector of keyed values for one feature) to this FeatureSetMap