C - The column typeT - The (boxed) type of data in the columnIterable<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 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.
|
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() |
Returns the NumbetPrintFormatter for this column, or null
|
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) |
Sets the value of all elements in this column matching condition to be equal to newValue and
returns this column
|
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 missingValueIndicator) |
Sets the print formatter to a new
ColumnFormatter constructed
from the given number format and missing value indicator TODO: make these return the column? |
void |
setPrintFormatter(NumberColumnFormatter formatter) |
Sets the print formatter to the argument
|
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, appendMissing, appendObj, asBytes, asList, asObjectArray, asSet, clear, columnWidth, contains, count, count, countUnique, equals, 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, unique, valueHashcompare, 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, copy, 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 missingValueIndicator)
ColumnFormatter constructed
from the given number format and missing value indicator TODO: make these return the column?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)
public C emptyCopy()
emptyCopy 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)
public it.unimi.dsi.fastutil.ints.IntComparator rowComparator()
rowComparator in interface Column<C extends NumberColumn<C,T>>public int byteSize()
public int countMissing()
countMissing in interface Column<C extends NumberColumn<C,T>>Copyright © 2022. All rights reserved.