public class QualityModelRowOrientedAECS
extends java.lang.Object
| Constructor and Description |
|---|
QualityModelRowOrientedAECS(WrappedBoolean interrupt,
WrappedInteger progress,
int totalWorkload,
DataHandle input,
DataHandle output,
int suppressedInput,
int suppressedOutput,
Groupify<TupleWrapper> groupedInput,
Groupify<TupleWrapper> groupedOutput,
java.lang.String[][][] hierarchies,
QualityDomainShare[] shares,
int[] indices,
QualityConfiguration config)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkInterrupt()
Checks whether an interruption happened.
|
QualityMeasureRowOriented |
evaluate()
Evaluates the utility measure
|
protected double[][] |
getColumnsAsNumbers(DataHandle input,
DataHandle output,
java.lang.String[][] hierarchy,
int column)
Returns a columns from the input and output dataset converted to numbers
|
protected QualityDomainShare[] |
getDomainShares()
Returns the domain shares
|
protected Groupify<TupleWrapper> |
getGroupedInput()
Returns grouped input
|
protected Groupify<TupleWrapper> |
getGroupedOutput()
Returns grouped output
|
protected java.lang.String[][][] |
getHierarchies()
Returns the hierarchies
|
protected int[] |
getIndices()
Returns relevant indices
|
protected DataHandle |
getInput()
Returns input
|
protected double[] |
getMinMax(double[] column)
Returns minimum, maximum for the given column
|
protected double[] |
getNumbersFromHierarchy(DataHandle handle,
int column,
java.lang.String[][] hierarchy)
Returns a numeric representation, relying on the hierarchy
|
protected double[] |
getNumbersFromNumericColumn(DataHandle input,
int column)
Parses numbers from a numeric input column
|
protected double[] |
getNumbersFromNumericColumn(double[] inputAsNumbers,
DataHandle output,
int column)
Parses numbers from a numeric output column
|
protected double[] |
getNumbersFromNumericColumnAndHierarchy(DataHandle input,
double[] inputAsNumbers,
DataHandle output,
int column,
java.lang.String[][] hierarchy)
Uses numeric input and a hierarchy to construct ranges
|
protected DataHandle |
getOutput()
Returns output
|
protected double[] |
getRangeFromNumericColumn(double[] inputNumbers,
DataHandle output,
int column)
Tries to parse numbers from output when there is a numeric input column
|
protected int |
getSuppressedRecordsInInput()
Returns the number of records suppressed in input
|
protected int |
getSuppressedRecordsInOutput()
Returns the number of records suppressed in output
|
protected java.lang.String |
getSuppressionString()
Returns the suppression string
|
protected boolean |
isSuppressed(DataHandle handle,
int[] indices,
int row)
We assume that an entry is suppressed, if all values are equal
|
protected boolean |
isSuppressed(DataHandle handle,
int row,
int column)
Returns whether a value is suppressed
|
protected boolean |
isSuppressed(int column,
java.lang.String value)
Returns whether a value is suppressed
|
protected double |
log2(double d)
Log base-2
|
protected void |
setStepPerformed()
One step performed
|
protected void |
setSteps(int steps)
Total number of steps
|
protected void |
setStepsDone()
All steps performed
|
public QualityModelRowOrientedAECS(WrappedBoolean interrupt, WrappedInteger progress, int totalWorkload, DataHandle input, DataHandle output, int suppressedInput, int suppressedOutput, Groupify<TupleWrapper> groupedInput, Groupify<TupleWrapper> groupedOutput, java.lang.String[][][] hierarchies, QualityDomainShare[] shares, int[] indices, QualityConfiguration config)
interrupt - progress - totalWorkload - input - output - suppressedInput - suppressedOutput - groupedInput - groupedOutput - hierarchies - shares - indices - config - public QualityMeasureRowOriented evaluate()
protected void checkInterrupt()
protected double[][] getColumnsAsNumbers(DataHandle input, DataHandle output, java.lang.String[][] hierarchy, int column)
input - output - hierarchy - column - protected QualityDomainShare[] getDomainShares()
protected Groupify<TupleWrapper> getGroupedInput()
protected Groupify<TupleWrapper> getGroupedOutput()
protected java.lang.String[][][] getHierarchies()
protected int[] getIndices()
protected DataHandle getInput()
protected double[] getMinMax(double[] column)
column - protected double[] getNumbersFromHierarchy(DataHandle handle, int column, java.lang.String[][] hierarchy)
handle - column - hierarchy - protected double[] getNumbersFromNumericColumn(DataHandle input, int column)
input - column - protected double[] getNumbersFromNumericColumn(double[] inputAsNumbers,
DataHandle output,
int column)
inputAsNumbers - output - column - protected double[] getNumbersFromNumericColumnAndHierarchy(DataHandle input, double[] inputAsNumbers, DataHandle output, int column, java.lang.String[][] hierarchy)
input - inputAsNumbers - output - column - hierarchy - protected DataHandle getOutput()
protected double[] getRangeFromNumericColumn(double[] inputNumbers,
DataHandle output,
int column)
inputNumbers - output - column - protected int getSuppressedRecordsInInput()
protected int getSuppressedRecordsInOutput()
protected java.lang.String getSuppressionString()
protected boolean isSuppressed(DataHandle handle, int row, int column)
handle - row - column - protected boolean isSuppressed(DataHandle handle, int[] indices, int row)
entry - protected boolean isSuppressed(int column,
java.lang.String value)
column - value - protected double log2(double d)
d - protected void setStepPerformed()
protected void setSteps(int steps)
steps - protected void setStepsDone()