public class PayoffMap extends Object implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
protected LinkedHashMap<Strategy,org.apache.commons.math3.stat.descriptive.SummaryStatistics> |
payoffs |
protected Vector<Strategy> |
strategyIndex |
Constructor and Description |
---|
PayoffMap() |
PayoffMap(List<Strategy> strategies) |
PayoffMap(List<Strategy> strategies,
org.springframework.beans.factory.ObjectFactory<org.apache.commons.math3.stat.descriptive.SummaryStatistics> summaryStatisticsFactory) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
double |
getMeanPayoff(int i) |
double |
getMeanPayoff(Strategy strategy) |
org.apache.commons.math3.stat.descriptive.SummaryStatistics |
getPayoffDistribution(int i) |
org.apache.commons.math3.stat.descriptive.SummaryStatistics |
getPayoffDistribution(Strategy strategy) |
Set<Strategy> |
getStrategies() |
void |
initialise() |
int |
size() |
String |
toString() |
void |
updatePayoff(Strategy strategy,
double fitness) |
protected LinkedHashMap<Strategy,org.apache.commons.math3.stat.descriptive.SummaryStatistics> payoffs
public PayoffMap()
public PayoffMap(List<Strategy> strategies, org.springframework.beans.factory.ObjectFactory<org.apache.commons.math3.stat.descriptive.SummaryStatistics> summaryStatisticsFactory)
public void updatePayoff(Strategy strategy, double fitness)
public double getMeanPayoff(Strategy strategy)
public org.apache.commons.math3.stat.descriptive.SummaryStatistics getPayoffDistribution(Strategy strategy)
public org.apache.commons.math3.stat.descriptive.SummaryStatistics getPayoffDistribution(int i)
public double getMeanPayoff(int i)
public int size()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public void initialise()
Copyright © 2014. All rights reserved.