|
||||||||||
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 Stats
public void reinitialize(char c)
reinitialize
in class Stats
c
- ='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 Stats
S
- the speaker AgentH
- the hearer Agentt
- the agent's typepublic void logFile(java.io.PrintWriter outfile)
logFile
in class Stats
outfile
- the logfile.public void print()
print
in class Stats
public double[] getCS()
getCS
in class Stats
public double[] getDS()
getDS
in class Stats
public int getGame()
getGame
in class Stats
public int getMid()
getMid
in class Stats
public int getEnd()
getEnd
in class Stats
public double getPCoh()
getPCoh
in class Stats
public double getICoh()
getICoh
in class Stats
public boolean getUpdate()
getUpdate
in class Stats
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |