|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--Util.Stats
|
+--Util.HolisticStats
Implementation of the statistics.
Copyright (c) 2004 Paul Vogt
| Field Summary | |
protected double[] |
cs
|
protected double[] |
ds
|
protected int |
end
|
protected int |
game
|
protected double |
iCoherence
|
protected int |
mid
|
protected double |
pCoherence
|
protected boolean |
update
|
| Constructor Summary | |
HolisticStats()
constructor |
|
| Method Summary | |
double[] |
getCS()
|
double[] |
getDS()
|
int |
getEnd()
|
int |
getGame()
|
double |
getICoh()
|
int |
getMid()
|
double |
getPCoh()
|
boolean |
getUpdate()
|
void |
logFile(java.io.PrintWriter outfile)
This function writes the statistics of each game to the logfile. |
void |
print()
Function to write the game information to the standard output |
void |
reinitialize(char c)
This function reinitialises the statistics at the start of each iteration in the iterated learning model and when a new game is started. |
protected int |
rescale()
This function rescales the arrays for the UI |
void |
update(Agent S,
Agent H,
int t)
Updates the statistics at the end of each language game. |
void |
updateCoherence(double x,
double y)
This function updates the production coherence and interpretation coherence (aka accuracy) measures. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected double[] cs
protected double[] ds
protected int game
protected int mid
protected int end
protected double pCoherence
protected double iCoherence
protected boolean update
| Constructor Detail |
public HolisticStats()
| Method Detail |
protected int rescale()
rescale in class Statspublic void reinitialize(char c)
reinitialize in class Statsc - ='n' if a new game is started.
public void updateCoherence(double x,
double y)
updateCoherence in class Stats
public void update(Agent S,
Agent H,
int t)
update in class StatsS - the speaker AgentH - the hearer Agentt - the agent's typepublic void logFile(java.io.PrintWriter outfile)
logFile in class Statsoutfile - the logfile.public void print()
print in class Statspublic double[] getCS()
getCS in class Statspublic double[] getDS()
getDS in class Statspublic int getGame()
getGame in class Statspublic int getMid()
getMid in class Statspublic int getEnd()
getEnd in class Statspublic double getPCoh()
getPCoh in class Statspublic double getICoh()
getICoh in class Statspublic boolean getUpdate()
getUpdate in class Stats
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||