edu.stanford.nlp.util
Class DeltaCounter

java.lang.Object
  extended byedu.stanford.nlp.util.Counter
      extended byedu.stanford.nlp.util.DeltaCounter
All Implemented Interfaces:
Serializable

public class DeltaCounter
extends Counter

A Counter that is maintained as a delta off another Counter. This will be efficient if you are maintaining minor modifications to Counters.

Author:
Teg Grenager Date: Jan 26, 2004 Time: 8:39:49 PM
See Also:
Serialized Form

Constructor Summary
DeltaCounter(Counter c)
           
 
Method Summary
 void incrementCount(Object key, double count)
          puts new MutableDoubles.
 void setCount(Object key, double count)
          puts new MutableDoubles.
 
Methods inherited from class edu.stanford.nlp.util.Counter
addAll, argmax, argmax, argmin, argmin, average, averageCount, clear, clone, comparator, comparator, comparator, containsKey, decrementCount, decrementCount, decrementCounts, decrementCounts, entropy, equals, getCount, getNormalizedCount, hashCode, incrementCount, incrementCounts, incrementCounts, informationRadius, isEmpty, keysAbove, keysAt, keysBelow, keySet, klDivergence, main, max, min, normalize, remove, removeAll, removeZeroCounts, setCounts, size, subtractAll, toString, totalCount, totalCount
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeltaCounter

public DeltaCounter(Counter c)
Method Detail

setCount

public void setCount(Object key,
                     double count)
puts new MutableDoubles.

Overrides:
setCount in class Counter

incrementCount

public void incrementCount(Object key,
                           double count)
puts new MutableDoubles.

Overrides:
incrementCount in class Counter


Stanford NLP Group