Package adaa.analytics.rules.data
Class DataTable
java.lang.Object
adaa.analytics.rules.data.DataTable
- All Implemented Interfaces:
IExampleSet
,Serializable
,Cloneable
,Iterable<Example>
- See Also:
-
Field Summary
Fields inherited from interface adaa.analytics.rules.data.IExampleSet
serialVersionUID
-
Constructor Summary
ConstructorsConstructorDescriptionDataTable
(Object[][] values, String[] attributesNames, String decisionAttribute, String survivalTimeAttribute, String contrastAttribute) DataTable
(tech.tablesaw.api.Table table, ColumnMetadataMap columnMetadataMap, DataTableAnnotations dataTableAnnotations) DataTable
(tech.tablesaw.io.csv.CsvReadOptions.Builder builder, List<AttributeInfo> attsInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNewColumn
(IAttribute colMetaData) clone()
int
void
void
createPredictionColumn
(String name) void
customSort
(String columnName, EColumnSortDirections sortDir, ESortAlgorithm sortAlgorithm) boolean
filter
(ICondition cnd) filterWithOr
(List<ICondition> cndList) getColumn
(int index) int
getColumnIndex
(String attributeName) tech.tablesaw.api.DoubleColumn
getDoubleColumn
(IAttribute attr) double
getDoubleValue
(int colIdx, int rowIndex) getExample
(int rowIndex) tech.tablesaw.api.Row
getRow
(int index) int
hashCode()
boolean
isDoubleColumnSorted
(String columnName, EColumnSortDirections sortDir) iterator()
void
recalculateStatistics
(EStatisticType stateType, String colName) void
setDoubleValue
(IAttribute att, int rowIndex, double value) boolean
int
size()
void
sortBy
(String columnName, EColumnSortDirections sortDir) updateMapping
(IExampleSet mappingSource) Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DataTable
public DataTable(tech.tablesaw.api.Table table, ColumnMetadataMap columnMetadataMap, DataTableAnnotations dataTableAnnotations) -
DataTable
-
DataTable
-
-
Method Details
-
columnCount
public int columnCount()- Specified by:
columnCount
in interfaceIExampleSet
-
createPredictionColumn
-
addNewColumn
- Specified by:
addNewColumn
in interfaceIExampleSet
-
getColumn
-
getColumn
-
getRow
public tech.tablesaw.api.Row getRow(int index) -
getColumnIndex
- Specified by:
getColumnIndex
in interfaceIExampleSet
-
setRole
-
sortBy
- Specified by:
sortBy
in interfaceIExampleSet
-
isDoubleColumnSorted
-
customSort
public void customSort(String columnName, EColumnSortDirections sortDir, ESortAlgorithm sortAlgorithm) -
clone
- Specified by:
clone
in interfaceIExampleSet
- Overrides:
clone
in classObject
-
recalculateStatistics
- Specified by:
recalculateStatistics
in interfaceIExampleSet
-
getDoubleValue
public double getDoubleValue(int colIdx, int rowIndex) - Specified by:
getDoubleValue
in interfaceIExampleSet
-
getDoubleColumn
- Specified by:
getDoubleColumn
in interfaceIExampleSet
-
setDoubleValue
- Specified by:
setDoubleValue
in interfaceIExampleSet
-
filter
- Specified by:
filter
in interfaceIExampleSet
-
filterWithOr
- Specified by:
filterWithOr
in interfaceIExampleSet
-
getAttributes
- Specified by:
getAttributes
in interfaceIExampleSet
-
size
public int size()- Specified by:
size
in interfaceIExampleSet
-
getExample
- Specified by:
getExample
in interfaceIExampleSet
-
updateMapping
- Specified by:
updateMapping
in interfaceIExampleSet
-
getAnnotations
- Specified by:
getAnnotations
in interfaceIExampleSet
-
iterator
-
equals
-
hashCode
public int hashCode() -
convertStringColsToDouble
public void convertStringColsToDouble()
-