|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Tester
Interface for different kinds of Testers in the Experimenter.
Method Summary | |
---|---|
void |
assign(Tester tester)
retrieves all the settings from the given Tester |
PairedStats |
calculateStatistics(Instance datasetSpecifier,
int resultset1Index,
int resultset2Index,
int comparisonColumn)
Computes a paired t-test comparison for a specified dataset between two resultsets. |
boolean |
displayResultset(int index)
Checks whether the resultset with the given index shall be displayed. |
Range |
getDatasetKeyColumns()
Get the value of DatasetKeyColumns. |
int[] |
getDisplayedResultsets()
Gets the indices of the the datasets that are displayed (if null
then all are displayed). |
String |
getDisplayName()
returns the name of the testing algorithm |
int |
getFoldColumn()
Get the value of FoldColumn. |
Instances |
getInstances()
Get the value of Instances. |
int |
getNumDatasets()
Gets the number of datasets in the resultsets |
int |
getNumResultsets()
Gets the number of resultsets in the data. |
ResultMatrix |
getResultMatrix()
Gets the instance that produces the output. |
Range |
getResultsetKeyColumns()
Get the value of ResultsetKeyColumns. |
String |
getResultsetName(int index)
Gets a string descriptive of the specified resultset. |
int |
getRunColumn()
Get the value of RunColumn. |
boolean |
getShowStdDevs()
Returns true if standard deviations have been requested. |
double |
getSignificanceLevel()
Get the value of SignificanceLevel. |
int |
getSortColumn()
Returns the column to sort on, -1 means the default sorting. |
String |
getSortColumnName()
Returns the name of the column to sort on. |
String |
getToolTipText()
returns a string that is displayed as tooltip on the "perform test" button in the experimenter |
String |
header(int comparisonColumn)
Creates a "header" string describing the current resultsets. |
String |
multiResultsetFull(int baseResultset,
int comparisonColumn)
Creates a comparison table where a base resultset is compared to the other resultsets. |
String |
multiResultsetRanking(int comparisonColumn)
|
String |
multiResultsetSummary(int comparisonColumn)
Carries out a comparison between all resultsets, counting the number of datsets where one resultset outperforms the other. |
int[][] |
multiResultsetWins(int comparisonColumn,
int[][] nonSigWin)
Carries out a comparison between all resultsets, counting the number of datsets where one resultset outperforms the other. |
String |
resultsetKey()
Creates a key that maps resultset numbers to their descriptions. |
void |
setDatasetKeyColumns(Range newDatasetKeyColumns)
Set the value of DatasetKeyColumns. |
void |
setDisplayedResultsets(int[] cols)
Sets the indicies of the datasets to display ( null means all). |
void |
setFoldColumn(int newFoldColumn)
Set the value of FoldColumn. |
void |
setInstances(Instances newInstances)
Set the value of Instances. |
void |
setResultMatrix(ResultMatrix matrix)
Sets the matrix to use to produce the output. |
void |
setResultsetKeyColumns(Range newResultsetKeyColumns)
Set the value of ResultsetKeyColumns. |
void |
setRunColumn(int newRunColumn)
Set the value of RunColumn. |
void |
setShowStdDevs(boolean s)
Set whether standard deviations are displayed or not. |
void |
setSignificanceLevel(double newSignificanceLevel)
Set the value of SignificanceLevel. |
void |
setSortColumn(int newSortColumn)
Set the column to sort on, -1 means the default sorting. |
Method Detail |
---|
String getDisplayName()
String getToolTipText()
void assign(Tester tester)
tester
- the Tester to get the settings fromvoid setResultMatrix(ResultMatrix matrix)
matrix
- the instance to use to produce the outputResultMatrix
ResultMatrix getResultMatrix()
void setShowStdDevs(boolean s)
s
- true if standard deviations are to be displayedboolean getShowStdDevs()
int getNumDatasets()
int getNumResultsets()
String getResultsetName(int index)
index
- the index of the resultset
boolean displayResultset(int index)
index
- the index of the resultset to check whether it shall be displayed
PairedStats calculateStatistics(Instance datasetSpecifier, int resultset1Index, int resultset2Index, int comparisonColumn) throws Exception
datasetSpecifier
- the dataset specifierresultset1Index
- the index of the first resultsetresultset2Index
- the index of the second resultsetcomparisonColumn
- the column containing values to compare
Exception
- if an error occursString resultsetKey()
String header(int comparisonColumn)
comparisonColumn
- a value of type 'int'
int[][] multiResultsetWins(int comparisonColumn, int[][] nonSigWin) throws Exception
comparisonColumn
- the index of the comparison column
Exception
- if an error occursString multiResultsetSummary(int comparisonColumn) throws Exception
comparisonColumn
- the index of the comparison column
Exception
- if an error occursString multiResultsetRanking(int comparisonColumn) throws Exception
Exception
String multiResultsetFull(int baseResultset, int comparisonColumn) throws Exception
baseResultset
- the index of the base resultsetcomparisonColumn
- the index of the column to compare over
Exception
- if an error occursRange getResultsetKeyColumns()
void setResultsetKeyColumns(Range newResultsetKeyColumns)
newResultsetKeyColumns
- Value to assign to ResultsetKeyColumns.int[] getDisplayedResultsets()
null
then all are displayed). The base is always displayed.
void setDisplayedResultsets(int[] cols)
null
means all).
The base is always displayed.
cols
- the indices of the datasets to displaydouble getSignificanceLevel()
void setSignificanceLevel(double newSignificanceLevel)
newSignificanceLevel
- Value to assign to SignificanceLevel.Range getDatasetKeyColumns()
void setDatasetKeyColumns(Range newDatasetKeyColumns)
newDatasetKeyColumns
- Value to assign to DatasetKeyColumns.int getRunColumn()
void setRunColumn(int newRunColumn)
newRunColumn
- Value to assign to RunColumn.int getFoldColumn()
void setFoldColumn(int newFoldColumn)
newFoldColumn
- Value to assign to FoldColumn.String getSortColumnName()
int getSortColumn()
void setSortColumn(int newSortColumn)
newSortColumn
- the new sort column.Instances getInstances()
void setInstances(Instances newInstances)
newInstances
- Value to assign to Instances.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |