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 TypeMethodDescriptionvoidaddNewColumn(IAttribute colMetaData) clone()intvoidvoidcreatePredictionColumn(String name) voidcustomSort(String columnName, EColumnSortDirections sortDir, ESortAlgorithm sortAlgorithm) booleanfilter(ICondition cnd) filterWithOr(List<ICondition> cndList) getColumn(int index) intgetColumnIndex(String attributeName) tech.tablesaw.api.DoubleColumngetDoubleColumn(IAttribute attr) doublegetDoubleValue(int colIdx, int rowIndex) getExample(int rowIndex) tech.tablesaw.api.RowgetRow(int index) inthashCode()booleanisDoubleColumnSorted(String columnName, EColumnSortDirections sortDir) iterator()voidrecalculateStatistics(EStatisticType stateType, String colName) voidsetDoubleValue(IAttribute att, int rowIndex, double value) booleanintsize()voidsortBy(String columnName, EColumnSortDirections sortDir) updateMapping(IExampleSet mappingSource) Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
columnCountin interfaceIExampleSet
-
createPredictionColumn
-
addNewColumn
- Specified by:
addNewColumnin interfaceIExampleSet
-
getColumn
-
getColumn
-
getRow
public tech.tablesaw.api.Row getRow(int index) -
getColumnIndex
- Specified by:
getColumnIndexin interfaceIExampleSet
-
setRole
-
sortBy
- Specified by:
sortByin interfaceIExampleSet
-
isDoubleColumnSorted
-
customSort
public void customSort(String columnName, EColumnSortDirections sortDir, ESortAlgorithm sortAlgorithm) -
clone
- Specified by:
clonein interfaceIExampleSet- Overrides:
clonein classObject
-
recalculateStatistics
- Specified by:
recalculateStatisticsin interfaceIExampleSet
-
getDoubleValue
public double getDoubleValue(int colIdx, int rowIndex) - Specified by:
getDoubleValuein interfaceIExampleSet
-
getDoubleColumn
- Specified by:
getDoubleColumnin interfaceIExampleSet
-
setDoubleValue
- Specified by:
setDoubleValuein interfaceIExampleSet
-
filter
- Specified by:
filterin interfaceIExampleSet
-
filterWithOr
- Specified by:
filterWithOrin interfaceIExampleSet
-
getAttributes
- Specified by:
getAttributesin interfaceIExampleSet
-
size
public int size()- Specified by:
sizein interfaceIExampleSet
-
getExample
- Specified by:
getExamplein interfaceIExampleSet
-
updateMapping
- Specified by:
updateMappingin interfaceIExampleSet
-
getAnnotations
- Specified by:
getAnnotationsin interfaceIExampleSet
-
iterator
-
equals
-
hashCode
public int hashCode() -
convertStringColsToDouble
public void convertStringColsToDouble()
-