Iterable<C>, Comparator<C>, NumericColumn<T>, Column<C>, NumberFilters, NumberMapFunctions, FilterSpec<C>, NumberFilterSpec<C>DoubleColumn, FloatColumn, IntColumn, LongColumn, ShortColumnpublic abstract class NumberColumn<C extends NumberColumn<C,T>,T extends Number> extends AbstractColumn<C,T> implements NumericColumn<T>
| Modifier and Type | Field | Description |
|---|---|---|
protected it.unimi.dsi.fastutil.ints.IntComparator |
comparator |
|
protected Locale |
locale |
DEFAULT_ARRAY_SIZE| Modifier | Constructor | Description |
|---|---|---|
protected |
NumberColumn(ColumnType type,
String name,
AbstractColumnParser<T> parser) |
| Modifier and Type | Method | Description |
|---|---|---|
abstract C |
appendMissing() |
Appends a missing value appropriate to the column
|
abstract byte[] |
asBytes(int rowNumber) |
Returns the contents of the cell at rowNumber as a byte[]
|
abstract NumericColumn<T> |
bottom(int n) |
Returns the smallest ("bottom") n values in the column TODO(lwhite): Consider whether this
should exclude missing
|
int |
byteSize() |
Returns the width of a cell in this column, in bytes.
|
abstract C |
copy() |
Returns a deep copy of the receiver
|
int |
countMissing() |
Returns the count of missing values in this column
|
protected abstract C |
createCol(String name) |
|
protected abstract C |
createCol(String name,
int size) |
|
C |
emptyCopy() |
Returns a copy of the receiver with no data.
|
C |
emptyCopy(int rowSize) |
Returns an empty copy of the receiver, with its internal storage initialized to the given row
size.
|
protected NumberColumnFormatter |
getPrintFormatter() |
|
String |
getString(int row) |
Returns a string representation of the value at the given row.
|
it.unimi.dsi.fastutil.ints.IntComparator |
rowComparator() |
Compares the given ints, which refer to the indexes of the doubles in this column, according to
the values of the doubles themselves
|
NumberColumn<C,T> |
set(DoublePredicate condition,
T newValue) |
|
NumberColumn<C,T> |
set(DoublePredicate condition,
NumberColumn<C,T> other) |
Updates this column where values matching the selection are replaced with the corresponding
value from the given column
|
void |
setPrintFormatter(NumberFormat format,
String missingValueString) |
|
void |
setPrintFormatter(NumberColumnFormatter formatter) |
|
abstract NumericColumn<T> |
top(int n) |
Returns the largest ("top") n values in the column TODO(lwhite): Consider whether this should
exclude missing
|
asStringColumn, filter, first, indexOf, inRange, last, map, max, min, name, parser, sampleN, sampleX, set, set, setName, setParser, sorted, subset, toString, typeallMatch, anyMatch, append, append, append, appendCell, appendCell, appendObj, asList, asObjectArray, clear, columnWidth, contains, count, count, countUnique, filter, first, get, getUnformattedString, indexOf, inRange, isMissing, last, map, map, mapInto, max, max, min, min, name, noneMatch, parser, print, reduce, reduce, removeMissing, sampleN, sampleX, set, set, set, set, set, set, setMissing, setMissingTo, setName, setParser, size, sortAscending, sortDescending, sorted, subset, title, type, uniquecompare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongforEach, iterator, spliteratorisBetweenExclusive, isBetweenInclusive, isCloseTo, isEqualTo, isEqualTo, isGreaterThan, isGreaterThan, isGreaterThanOrEqualTo, isGreaterThanOrEqualTo, isLessThan, isLessThan, isLessThanOrEqualTo, isLessThanOrEqualTo, isNegative, isNonNegative, isNotEqualTo, isNotEqualTo, isPositive, isZero, sizeabs, add, add, add, asPercent, asRatio, bin, cube, cubeRoot, cumMax, cumMin, cumProd, cumSum, difference, divide, divide, divide, isMissing, log10, log1p, logN, multiply, multiply, multiply, name, neg, normalize, pctChange, power, power, reciprocal, remainder, remainder, round, roundInt, size, sqrt, square, subtract, subtract, subtractallMatch, anyMatch, asDoubleArray, asDoubleColumn, asFloatColumn, asIntColumn, asLongColumn, asShortColumn, asStringColumn, autoCorrelation, autoCorrelation, count, count, eval, eval, geometricMean, getDouble, interpolate, isEmpty, isIn, isMissing, isNotIn, isNotMissing, kendalls, kurtosis, lag, lead, mapInto, max, max, mean, median, min, min, noneMatch, pctChange, pearsons, percentile, populationVariance, product, quadraticMean, quartile1, quartile3, range, reduce, reduce, rolling, skewness, spearmans, standardDeviation, stats, sum, summarize, summary, sumOfLogs, sumOfSquares, variance, whereprotected Locale locale
protected final it.unimi.dsi.fastutil.ints.IntComparator comparator
protected NumberColumn(ColumnType type, String name, AbstractColumnParser<T> parser)
public NumberColumn<C,T> set(DoublePredicate condition, NumberColumn<C,T> other)
public NumberColumn<C,T> set(DoublePredicate condition, T newValue)
public void setPrintFormatter(NumberFormat format, String missingValueString)
setPrintFormatter in interface NumericColumn<C extends NumberColumn<C,T>>public void setPrintFormatter(NumberColumnFormatter formatter)
setPrintFormatter in interface NumericColumn<C extends NumberColumn<C,T>>protected NumberColumnFormatter getPrintFormatter()
public abstract NumericColumn<T> top(int n)
n - The maximum number of records to return. The actual number will be smaller if n is
greater than the number of observations in the columnpublic abstract NumericColumn<T> bottom(int n)
n - The maximum number of records to return. The actual number will be smaller if n is
greater than the number of observations in the columnpublic String getString(int row)
Columnpublic C emptyCopy()
AbstractColumnemptyCopy in interface Column<C extends NumberColumn<C,T>>emptyCopy in class AbstractColumn<C extends NumberColumn<C,T>,T extends Number>Columnpublic C emptyCopy(int rowSize)
Columnpublic abstract C copy()
Columncopy in interface Column<C extends NumberColumn<C,T>>copy in interface NumericColumn<C extends NumberColumn<C,T>>Columnpublic it.unimi.dsi.fastutil.ints.IntComparator rowComparator()
rowComparator in interface Column<C extends NumberColumn<C,T>>public int byteSize()
Columnpublic abstract byte[] asBytes(int rowNumber)
public abstract C appendMissing()
ColumnappendMissing in interface Column<C extends NumberColumn<C,T>>public int countMissing()
countMissing in interface Column<C extends NumberColumn<C,T>>Copyright © 2021. All rights reserved.