CategoricColumn class

Constructors

CategoricColumn(Iterable<String> xs)

Properties

categories List<String>
A copy of the categories of stored data.
no setter
copy CategoricColumn
A copy of this column.
no setter
counts Map<String, int>
The number of times each value occurs in this column.
no setterinherited
entropy num
A measure of the entropy of the stored data.
no setter
hashCode int
The hash code for this object.
no setterinherited
impurity num
The Gini impurity of the stored data.
no setter
indexOrders List<int>
The indices the respective elements would move to upon ordering.
no setterinherited
indicesWithMissingValues List<int>
The indices where data is missing.
no setter
indicesWithValues List<int>
The indices where data is present.
no setter
length int
The number of elements in this column.
no setterinherited
orderedIndices List<int>
The indices that would order the data.
no setterinherited
proportions Map<String, num>
The proportion of this column made up by each value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
summary Map<String, num>
A statistical summary of this column.
no setter
uniqueValues Set<String>
The unique values stored in this column.
no setterinherited
values List<String>
A copy of the data stored in this column..
no setterinherited

Methods

add(String element) → void
Adds element to this column.
addAll(Iterable<String> elements) → void
Adds all values in elements to this column.
bootstrap({int? seed}) CategoricColumn
A bootstrap sample from this column.
bootstrapConfidenceIntervals({int simulations = 1000, num confidence = 0.95}) Future<Map<String, (num, num)>>
Bootstrap confidence intervals for statistics.
inherited
indicesWhere(bool predicate(String)) List<int>
The indices of the values that meet predicate.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetCategories(Iterable<String> categories) → void
Resets the categories; for example, if we would like the categories of two categoric columns to match.
toString() String
A string representation of this object.
inherited
valuesAtIndices(Iterable<int> indices) List<String>
The values stored at indices in this column.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) String
operator []=(int index, String value) → void

Constants

missingValueMarker → const String
A string to represent missing data.