uk.ac.liv.auction.stats
Class ComplexityReport
java.lang.Object
uk.ac.liv.auction.stats.AbstractAuctionReport
uk.ac.liv.auction.stats.ComplexityReport
- All Implemented Interfaces:
- AuctionEventListener, AuctionReport, Parameterizable, Resetable, java.io.Serializable
- public class ComplexityReport
- extends AbstractAuctionReport
- implements Resetable, java.io.Serializable, Parameterizable
- Version:
- $Revision: 1.2 $
- Author:
- Steve Phelps
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
numStates
protected int numStates
globalMargin
protected CummulativeDistribution globalMargin
independentHistograms
protected java.util.HashMap independentHistograms
jointHistograms
protected java.util.HashMap jointHistograms
complexitySequence
protected DataWriter complexitySequence
agents
protected java.util.ArrayList agents
P_WRITER
public static final java.lang.String P_WRITER
- See Also:
- Constant Field Values
P_NUMSTATES
public static final java.lang.String P_NUMSTATES
- See Also:
- Constant Field Values
ComplexityReport
public ComplexityReport()
reset
public void reset()
- Description copied from interface:
Resetable
- Reinitialise our state to the original settings.
- Specified by:
reset in interface Resetable
initialise
public void initialise()
eventOccurred
public void eventOccurred(AuctionEvent event)
- Specified by:
eventOccurred in interface AuctionEventListener
updateShoutLog
public void updateShoutLog(ShoutPlacedEvent event)
setup
public void setup(ec.util.ParameterDatabase parameters,
ec.util.Parameter base)
- Description copied from interface:
Parameterizable
- Initialise this object from a parameter database.
- Specified by:
setup in interface Parameterizable
produceUserOutput
public void produceUserOutput()
- Description copied from interface:
AuctionReport
- Produce the final report for the user. Implementors can do whatever they
see fit, for example by writing a report on stdout, or they may choose to
do nothing.
- Specified by:
produceUserOutput in interface AuctionReport
getVariables
public java.util.Map getVariables()
- Description copied from interface:
AuctionReport
- Returns a Map of all of the variables that are produced in the report. The
Map maps variables, represented by objects of type ReportVariable, onto
values, which may be of any class. If no variables are produced by this
report then an empty Map is returned.
- Specified by:
getVariables in interface AuctionReport
- See Also:
ReportVariable
roundClosed
public void roundClosed(AuctionEvent event)
calculateTotalIndependenceDistance
public double calculateTotalIndependenceDistance()
updateJointHistograms
protected void updateJointHistograms()
updateIndependentHistograms
protected void updateIndependentHistograms()
buildAgentList
protected void buildAgentList()
independence
protected double independence(AbstractTradingAgent agent1,
AbstractTradingAgent agent2)
state
protected int state(AbstractTradingAgent agent)
state
protected int state(double markup,
AbstractTradingAgent agent)
markup
protected double markup(AbstractTradingAgent agent)