public class ExperimentOutputLayout extends Object
Manages the layouts for experiment output tables. Handles the common columns describing algorithms and data sets, and makes it easier to define new output tables that augment these columns with additional data.
Constructor and Description |
---|
ExperimentOutputLayout(Set<String> dataCols,
Set<String> algoCols) |
Modifier and Type | Method and Description |
---|---|
int |
getAlgorithmColumn(String name) |
int |
getConditionColumnCount() |
TableLayout |
getConditionLayout() |
int |
getDataColumn(String name) |
TableWriter |
prefixTable(TableWriter base,
DataSet data,
AlgorithmInstance algorithm)
Prefix a table for a particular algorithm and data set.
|
public TableLayout getConditionLayout()
public int getConditionColumnCount()
public int getDataColumn(String name)
public int getAlgorithmColumn(String name)
public TableWriter prefixTable(@Nullable TableWriter base, @Nonnull DataSet data, @Nonnull AlgorithmInstance algorithm)
Prefix a table for a particular algorithm and data set.
base
- The table to prefix.data
- The data set to prefix for.algorithm
- The algorithm to prefix for.algorithmInfo
on data
, or null
if base
is null.