net.sourceforge.jabm.report
Class PayoffMap
java.lang.Object
net.sourceforge.jabm.report.PayoffMap
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class PayoffMap
- extends java.lang.Object
- implements java.io.Serializable, java.lang.Cloneable
- See Also:
- Serialized Form
-
-
Constructor Summary |
PayoffMap()
|
PayoffMap(java.util.List<Strategy> strategies)
|
PayoffMap(java.util.List<Strategy> strategies,
org.springframework.beans.factory.ObjectFactory<org.apache.commons.math3.stat.descriptive.SummaryStatistics> summaryStatisticsFactory)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
payoffs
protected java.util.LinkedHashMap<Strategy,org.apache.commons.math3.stat.descriptive.SummaryStatistics> payoffs
strategyIndex
protected java.util.Vector<Strategy> strategyIndex
PayoffMap
public PayoffMap()
PayoffMap
public PayoffMap(java.util.List<Strategy> strategies,
org.springframework.beans.factory.ObjectFactory<org.apache.commons.math3.stat.descriptive.SummaryStatistics> summaryStatisticsFactory)
PayoffMap
public PayoffMap(java.util.List<Strategy> strategies)
updatePayoff
public void updatePayoff(Strategy strategy,
double fitness)
getStrategies
public java.util.Set<Strategy> getStrategies()
getMeanPayoff
public double getMeanPayoff(Strategy strategy)
getPayoffDistribution
public org.apache.commons.math3.stat.descriptive.SummaryStatistics getPayoffDistribution(Strategy strategy)
getPayoffDistribution
public org.apache.commons.math3.stat.descriptive.SummaryStatistics getPayoffDistribution(int i)
getMeanPayoff
public double getMeanPayoff(int i)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
size
public int size()
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
initialise
public void initialise()