csli.util.classify.berkeley
Class FeatureSetMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.TreeMap
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
|
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 |
FeatureSetMap
public FeatureSetMap()
- Initialise as an empty hash
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