public class AgentStatistics
extends java.lang.Object
| Constructor and Description |
|---|
AgentStatistics(java.lang.String name,
double undiscounted,
double discounted,
double nash,
double welfare,
double paretodist,
long nSessions) |
| Modifier and Type | Method and Description |
|---|---|
double |
getMeanDiscounted() |
double |
getMeanNashDistance() |
double |
getMeanParetoDistance() |
double |
getMeanUndiscounted() |
double |
getMeanWelfare() |
java.lang.String |
getName() |
java.lang.String |
toString() |
AgentStatistics |
withUtility(double undiscounted,
double discounted,
double nashdist,
double welfare,
double paretodist)
Adds a new utility and returns a new statistic object with that.
|
public AgentStatistics(java.lang.String name,
double undiscounted,
double discounted,
double nash,
double welfare,
double paretodist,
long nSessions)
name - the agent's nameundiscounted - the total undiscounted utility accumulated over nSessionsdiscounted - the total discounted utility accumulated over nSessionsnash - the total distance to nash accumulated over nSessionswelfare - the total social welfare accumulated over nSessionsparetodist - the total accumulated distance to paretofrontier over
nSessionsnSessions - the total number of sessions that was accumulated data over.public AgentStatistics withUtility(double undiscounted, double discounted, double nashdist, double welfare, double paretodist)
undiscounted - the un-discounted utility to be addeddiscounted - the discounted utility to be addednashdist - the nash distance to be addedwelfare - the social welfare to be addedparetodist - the distance to pareto to be addedpublic java.lang.String toString()
toString in class java.lang.Objectpublic double getMeanDiscounted()
public double getMeanUndiscounted()
public java.lang.String getName()
public double getMeanNashDistance()
public double getMeanWelfare()
public double getMeanParetoDistance()