| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cuny.cat.market.charging.TraderExploringMonitor
edu.cuny.cat.market.charging.MultiDayExploringMonitor
public class MultiDayExploringMonitor
a trader exploration monitor that decides based solely on the trader distribution among markets over a certain number of days.
Parameters
| base.threshold double (0.6 by default)  | 
 (a threshold value as a filter to decide whether traders are exploring or not) | 
| base.windowsize int > 0 (5 by default)  | 
 (the size of the sliding window in terms of number of game days) | 
| base.learner name of class, inheriting MimicryLearner | 
 (type of learner used to update the exploring factor) | 
Default Base
| multi_day_exploring_monitor | 
| Field Summary | |
|---|---|
protected  edu.cuny.math.dist.CumulativeDistribution | 
curDailyPopularities
the distribution of traders on current day  | 
static double | 
DEFAULT_THRESHOLD
 | 
static int | 
DEFAULT_WINDOW_SIZE
 | 
protected  double | 
exploring
 | 
protected  edu.cuny.ai.learning.MimicryLearner | 
learner
estimate the exploring factor based on the history.  | 
protected  java.util.Map<java.lang.String,edu.cuny.struct.FixedLengthQueue> | 
multiDailyPopularities
each specialist has a distribution, which tracks its popularity changes over the sliding window.  | 
static java.lang.String | 
P_DEF_BASE
 | 
static java.lang.String | 
P_LEARNER
 | 
static java.lang.String | 
P_THRESHOLD
 | 
static java.lang.String | 
P_WINDOW_SIZE
 | 
protected  double | 
threshold
a threshold value to determine whether traders are exploring in general or not.  | 
protected  int | 
windowSize
the number of consecutive days to observe to determine the level of exploration.  | 
| Constructor Summary | |
|---|---|
MultiDayExploringMonitor()
 | 
|
| Method Summary | |
|---|---|
 void | 
calculateExploring()
 | 
protected  void | 
dayInitialize()
 | 
 void | 
eventOccurred(AuctionEvent event)
 | 
protected  double | 
getCurDailyExploringFactor()
 | 
 double | 
getExploringFactor()
 | 
 double | 
getExploringThreshold()
 | 
 int | 
getWindowSize()
 | 
 boolean | 
isExploring()
tells whether traders are estimated to be exploring or not.  | 
 void | 
reset()
 | 
 void | 
setExploringThreshold(double threshold)
 | 
 void | 
setup(edu.cuny.config.param.ParameterDatabase parameters,
      edu.cuny.config.param.Parameter base)
 | 
 void | 
setWindowSize(int windowSize)
 | 
 java.lang.String | 
toString()
 | 
protected  void | 
updateExploringFactor()
 | 
protected  void | 
updateTraderRegistration(RegisteredTradersAnnouncedEvent event)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String P_DEF_BASE
public static final java.lang.String P_THRESHOLD
public static final java.lang.String P_WINDOW_SIZE
public static final java.lang.String P_LEARNER
public static final double DEFAULT_THRESHOLD
public static final int DEFAULT_WINDOW_SIZE
protected double threshold
protected double exploring
protected int windowSize
protected edu.cuny.math.dist.CumulativeDistribution curDailyPopularities
protected edu.cuny.ai.learning.MimicryLearner learner
protected java.util.Map<java.lang.String,edu.cuny.struct.FixedLengthQueue> multiDailyPopularities
| Constructor Detail | 
|---|
public MultiDayExploringMonitor()
| Method Detail | 
|---|
public void setup(edu.cuny.config.param.ParameterDatabase parameters,
                  edu.cuny.config.param.Parameter base)
setup in interface edu.cuny.config.param.Parameterizablesetup in class TraderExploringMonitorpublic void reset()
reset in interface edu.cuny.obj.Resetableprotected void dayInitialize()
public boolean isExploring()
TraderExploringMonitor
isExploring in class TraderExploringMonitorpublic double getExploringFactor()
getExploringFactor in class TraderExploringMonitorpublic void calculateExploring()
public int getWindowSize()
public void setWindowSize(int windowSize)
public double getExploringThreshold()
public void setExploringThreshold(double threshold)
protected void updateTraderRegistration(RegisteredTradersAnnouncedEvent event)
protected void updateExploringFactor()
protected double getCurDailyExploringFactor()
public void eventOccurred(AuctionEvent event)
eventOccurred in interface AuctionEventListenereventOccurred in class TraderExploringMonitorpublic java.lang.String toString()
toString in class java.lang.Object
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||