aima.util
Class FrequencyCounter<T>

java.lang.Object
  extended by aima.util.FrequencyCounter<T>

public class FrequencyCounter<T>
extends java.lang.Object


Constructor Summary
FrequencyCounter()
           
 
Method Summary
 java.lang.Integer getCount(T key)
           
 java.util.Set<T> getStates()
           
 void incrementFor(T key)
           
 java.lang.Double probabilityOf(T key)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FrequencyCounter

public FrequencyCounter()
Method Detail

getCount

public java.lang.Integer getCount(T key)

incrementFor

public void incrementFor(T key)

probabilityOf

public java.lang.Double probabilityOf(T key)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getStates

public java.util.Set<T> getStates()