|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cuny.cat.market.EfficiencyCalculator
public class EfficiencyCalculator
A class calculating efficiency, convergence coefficient, and profit
dispersion based on a EquilibriumCalculator
with true shouts from
traders and a set of actual transactions.
Field Summary | |
---|---|
protected double |
convergenceCoeff
Market convergence coefficient |
protected double |
eA
Market efficiency. |
protected double |
equilibriumPrice
|
protected static org.apache.log4j.Logger |
logger
|
protected java.util.List<Shout> |
matchedShouts
|
protected double |
pBA
The actual profits of the buyers. |
protected double |
pBCE
The profits of the buyers in theoretical equilibrium. |
protected double |
profitDispersion
|
protected double |
pSA
The actual profits of the sellers. |
protected double |
pSCE
The profits of the sellers in theoretical equilibrium. |
protected java.util.Collection<Trader> |
traders
|
protected java.util.Collection<Transaction> |
transactions
|
Constructor Summary | |
---|---|
EfficiencyCalculator(EquilibriumCalculator equilCal,
java.util.Collection<Transaction> transactions,
java.util.Collection<Trader> traders)
|
Method Summary | |
---|---|
protected void |
calculateActualProfit()
|
protected void |
calculateConvergenceCoeff()
|
protected void |
calculateEfficiency()
|
protected void |
calculateProfitDispersion()
|
protected void |
calculateTheoreticalProfit()
|
double |
getActualProfit()
|
double |
getConvergenceCoeff()
|
double |
getEA()
|
double |
getProfitDispersion()
|
double |
getTheoreticalProfit()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<Shout> matchedShouts
protected double pBCE
protected double pSCE
protected double pBA
protected double pSA
protected double eA
protected double convergenceCoeff
protected double profitDispersion
protected double equilibriumPrice
protected java.util.Collection<Transaction> transactions
protected java.util.Collection<Trader> traders
protected static org.apache.log4j.Logger logger
Constructor Detail |
---|
public EfficiencyCalculator(EquilibriumCalculator equilCal, java.util.Collection<Transaction> transactions, java.util.Collection<Trader> traders)
Method Detail |
---|
protected void calculateEfficiency()
protected void calculateTheoreticalProfit()
protected void calculateActualProfit()
protected void calculateConvergenceCoeff()
protected void calculateProfitDispersion()
public double getActualProfit()
public double getTheoreticalProfit()
public double getEA()
public double getConvergenceCoeff()
public double getProfitDispersion()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |