|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.operator.AbstractIOObject
edu.udo.cs.yale.operator.ResultObjectAdapter
edu.udo.cs.yale.tools.math.Averagable
edu.udo.cs.yale.operator.performance.PerformanceCriterion
edu.udo.cs.yale.operator.performance.EstimatedPerformance
public class EstimatedPerformance
This class is used to store estimated performance values before or even without the performance test is actually done using a test set. Please note that this type of performance cannot be used to calculate average values, i.e. it will lead to an error if an EstimatedPerformance criterion is used in a validation operator.
| Field Summary | |
|---|---|
private int |
exampleCount
|
private boolean |
minimizeForFitness
|
private java.lang.String |
name
|
private double |
value
|
| Constructor Summary | |
|---|---|
EstimatedPerformance()
Clone constructor. |
|
EstimatedPerformance(java.lang.String name,
double value,
int numberOfExamples,
boolean minimizeForFitness)
Constructs a new extimated performance criterion. |
|
| Method Summary | |
|---|---|
void |
buildSingleAverage(Averagable performance)
This method should build the average of this and another averagables of the same type. |
protected void |
cloneAveragable(Averagable other)
Must be implemented by subclasses such that it copies all values of other to this. |
int |
getExampleCount()
Returns the number of data points which was used to determine the criterion value. |
double |
getFitness()
Returns the fitness. |
double |
getMikroAverage()
Returns the (current) value of the averagable (the average itself). |
double |
getMikroVariance()
Returns the variance of the averagable. |
java.lang.String |
getName()
Returns the name of this estimated performance criterion, which can be set using setName(). |
void |
readCriterionData(java.io.BufferedReader in)
Reads the performance data from the given reader. |
void |
setMikroAverage(double value,
int numberOfExamples)
Sets the value of this estimated performance criterion. |
void |
writeCriterionData(java.io.PrintWriter out)
Writes the performance criterion into the given writer. |
| Methods inherited from class edu.udo.cs.yale.operator.performance.PerformanceCriterion |
|---|
compareTo, getMaxFitness, readPerformanceCriterion, writePerformanceCriterion |
| Methods inherited from class edu.udo.cs.yale.tools.math.Averagable |
|---|
buildAverage, clone, formatDeviation, formatPercent, formatValue, getAverage, getMakroAverage, getMakroStandardDeviation, getMakroVariance, getMikroStandardDeviation, getStandardDeviation, getVariance, toHTML, toString |
| Methods inherited from class edu.udo.cs.yale.operator.ResultObjectAdapter |
|---|
addAction, getActions, getVisualisationComponent, toHTML, toResultString |
| Methods inherited from class edu.udo.cs.yale.operator.AbstractIOObject |
|---|
copy, read, read, read, write, write |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.udo.cs.yale.operator.IOObject |
|---|
copy, write, write |
| Field Detail |
|---|
private java.lang.String name
private double value
private int exampleCount
private boolean minimizeForFitness
| Constructor Detail |
|---|
public EstimatedPerformance()
public EstimatedPerformance(java.lang.String name,
double value,
int numberOfExamples,
boolean minimizeForFitness)
name - Human readable namevalue - The Value of the performance criterionnumberOfExamples - The number of examples used to estimate this value.minimizeForFitness - Indicates whether or not (-1) * value should be used as
fitness value.| Method Detail |
|---|
public void writeCriterionData(java.io.PrintWriter out)
throws java.io.IOException
PerformanceCriterion
writeCriterionData in class PerformanceCriterionjava.io.IOException
public void readCriterionData(java.io.BufferedReader in)
throws java.io.IOException
PerformanceCriterion
readCriterionData in class PerformanceCriterionjava.io.IOExceptionpublic int getExampleCount()
PerformanceCriterion
getExampleCount in class PerformanceCriterionpublic double getMikroVariance()
Averagable
getMikroVariance in class Averagable
public void setMikroAverage(double value,
int numberOfExamples)
value - The Value of the performance criterionnumberOfExamples - The number of examples used to estimate this value. It is used
for calculateing the average.public double getMikroAverage()
Averagable
getMikroAverage in class Averagablepublic double getFitness()
getFitness in class PerformanceCriterionpublic java.lang.String getName()
getName in interface ResultObjectgetName in class Averagableprotected void cloneAveragable(Averagable other)
Averagableother to this. When this method is called,
it is guaranteed, that other is a subclass of the class of
the object it is called on.
cloneAveragable in class Averagablepublic void buildSingleAverage(Averagable performance)
AveragableSimpleCriterion for a simple
implementation example.
buildSingleAverage in class Averagable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||