net.sourceforge.jasa.report
Class DynamicConvergenceReport
java.lang.Object
net.sourceforge.jasa.report.AbstractAuctionReport
net.sourceforge.jasa.report.AbstractMarketStatsReport
net.sourceforge.jasa.report.DynamicConvergenceReport
- All Implemented Interfaces:
- java.io.Serializable, AuctionReport
public class DynamicConvergenceReport
- extends AbstractMarketStatsReport
A historicalDataReport that keeps track of the convergence of transaction prices, computing
the coefficient of convergence Vernon Smith used. The equilibrium price is
recomputed at the end of each day, thus this class can be used to keep track
of theoretically available surplus even when supply and demand are changing
over time. Each agent is assumed to be hypothetically able to trade the
specified quantity of units in each day.
- See Also:
- Serialized Form
-
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
equilibriaStats
protected EquilibriumReportVariables equilibriaStats
- The historicalDataReport used to calculate the equilibrium price.
quantity
protected int quantity
- The quantity that each agent can theoretically trade per day. This should
normally be set equal to agents' trade entitlement.
alpha
protected double alpha
equilibriumPrice
protected double equilibriumPrice
devSquareSum
protected double devSquareSum
P_DEF_BASE
public static final java.lang.String P_DEF_BASE
- See Also:
- Constant Field Values
P_QUANTITY
public static final java.lang.String P_QUANTITY
- See Also:
- Constant Field Values
VAR_ALPHA
public static final ReportVariable VAR_ALPHA
DynamicConvergenceReport
public DynamicConvergenceReport()
setAuction
public void setAuction(Market auction)
- Overrides:
setAuction
in class AbstractAuctionReport
calculate
public void calculate()
- Description copied from class:
AbstractMarketStatsReport
- Perform final calculations at the end of the market.
- Specified by:
calculate
in class AbstractMarketStatsReport
getAlpha
public double getAlpha()
compute
protected void compute(SimEvent event)
newPrice
protected void newPrice(double price)
initialise
public void initialise()
reset
public void reset()
produceUserOutput
public void produceUserOutput()
- Overrides:
produceUserOutput
in class AbstractAuctionReport
getVariableBindings
public java.util.Map<java.lang.Object,java.lang.Number> getVariableBindings()
- Overrides:
getVariableBindings
in class AbstractAuctionReport
getQuantity
public int getQuantity()
setQuantity
public void setQuantity(int quantity)