|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.bddbddb.order.EpisodeCollection
public class EpisodeCollection
A collection of trials on the same test. (The same BDD operation.)
Nested Class Summary | |
---|---|
class |
EpisodeCollection.Episode
|
Field Summary | |
---|---|
java.lang.String |
name
Name of the test. |
static java.lang.String |
OP_CONST
|
static java.lang.String |
RULE_CONST
Time of the test. |
static java.lang.String |
SPACER
|
java.util.Map |
trials
Map from orders to their trial information. |
static java.lang.String |
UPDATE_CONST
|
Constructor Summary | |
---|---|
EpisodeCollection(BDDInferenceRule rule,
int opNum)
Construct a new collection of trials. |
Method Summary | |
---|---|
void |
addTrial(Order o,
TrialPrediction p,
long cost,
long timestamp)
Add the information about a trial to this collection. |
void |
addTrial(TrialInfo i)
Add the information about a trial to this collection. |
boolean |
contains(Order o)
Returns true if this collection contains a trial with the given order, false otherwise. |
static EpisodeCollection.Episode |
episodeFromXMLElement(org.jdom.Element elem1,
java.util.Map nameToVar,
EpisodeCollection tc)
|
static EpisodeCollection |
fromXMLElement(org.jdom.Element e,
Solver solver)
|
long |
getAverage()
|
EpisodeCollection.Episode |
getCurrEpisode()
|
TrialInfo |
getMaximum()
|
TrialInfo |
getMinimum()
|
int |
getNumTrials()
|
int |
getOpNumber()
|
java.util.Collection |
getOrders()
|
InferenceRule |
getRule(Solver solver)
|
TrialInfo[] |
getSorted()
|
double |
getStdDev()
|
static double |
getStdDev(java.util.Collection trials)
Calculates the standard deviation of a collection of trials. |
java.util.Collection |
getTrials()
|
int |
getUpdateCount()
|
double |
getVariance()
|
static double |
getVariance(java.util.Collection trials)
Calculates the variance of a collection of trials. |
EpisodeCollection.Episode |
startNewEpisode(long timestamp)
|
java.lang.String |
toString()
|
org.jdom.Element |
toXMLElement()
Returns this EpisodeCollection as an XML element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String name
public static java.lang.String RULE_CONST
public static java.lang.String SPACER
public static java.lang.String UPDATE_CONST
public static java.lang.String OP_CONST
public java.util.Map trials
Constructor Detail |
---|
public EpisodeCollection(BDDInferenceRule rule, int opNum)
Method Detail |
---|
public void addTrial(TrialInfo i)
i
- trial infopublic void addTrial(Order o, TrialPrediction p, long cost, long timestamp)
o
- orderp
- predicted value for this trialcost
- cost of operationpublic boolean contains(Order o)
o
- order
public static double getStdDev(java.util.Collection trials)
trials
- collection of trials
public double getStdDev()
public static double getVariance(java.util.Collection trials)
trials
- collection of trials
public double getVariance()
public TrialInfo getMinimum()
public TrialInfo getMaximum()
public long getAverage()
public TrialInfo[] getSorted()
public java.util.Collection getTrials()
public int getNumTrials()
public java.lang.String toString()
toString
in class java.lang.Object
public org.jdom.Element toXMLElement()
public InferenceRule getRule(Solver solver)
public int getUpdateCount()
public int getOpNumber()
public static EpisodeCollection fromXMLElement(org.jdom.Element e, Solver solver)
public java.util.Collection getOrders()
public EpisodeCollection.Episode startNewEpisode(long timestamp)
public EpisodeCollection.Episode getCurrEpisode()
public static EpisodeCollection.Episode episodeFromXMLElement(org.jdom.Element elem1, java.util.Map nameToVar, EpisodeCollection tc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |