org.onebusaway.transit_data_federation.impl.realtime.history
Class CDFMap<T>

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.realtime.history.CDFMap<T>

public class CDFMap<T>
extends Object


Constructor Summary
CDFMap()
           
 
Method Summary
 boolean canSample()
           
 boolean hasProbability()
           
 boolean isEmpty()
           
 void put(double prob, T object)
           
 T sample()
           
 List<T> sample(int samples)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CDFMap

public CDFMap()
Method Detail

put

public void put(double prob,
                T object)

sample

public T sample()

sample

public List<T> sample(int samples)

isEmpty

public boolean isEmpty()

hasProbability

public boolean hasProbability()

canSample

public boolean canSample()

size

public int size()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 OneBusAway. All Rights Reserved.