T - Column<T>, Comparator<T>, FilterSpec<T>, Iterable<T>, NumberFilters, NumberFilterSpec<T>, NumberMapFunctionsDoubleColumn, FloatColumn, IntColumn, LongColumn, NumberColumn, ShortColumnpublic interface NumericColumn<T extends Number> extends Column<T>, NumberMapFunctions, NumberFilters
| Modifier and Type | Method | Description |
|---|---|---|
default boolean |
allMatch(DoublePredicate test) |
Returns true if all rows satisfy the predicate, false otherwise
|
default boolean |
anyMatch(DoublePredicate test) |
Returns true if any row satisfies the predicate, false otherwise
|
default double[] |
asDoubleArray() |
|
default DoubleColumn |
asDoubleColumn() |
Returns a new DoubleColumn containing a value for each value in this column
|
default FloatColumn |
asFloatColumn() |
Returns a new FloatColumn containing a value for each value in this column
|
default IntColumn |
asIntColumn() |
Returns a new IntColumn containing a value for each value in this column
|
default LongColumn |
asLongColumn() |
Returns a new LongColumn containing a value for each value in this column
|
default ShortColumn |
asShortColumn() |
|
StringColumn |
asStringColumn() |
Returns a StringColumn consisting of the (unformatted) String representation of this column
values
|
default double |
autoCorrelation() |
|
default double |
autoCorrelation(int lag) |
|
NumericColumn<T> |
copy() |
Returns a deep copy of the receiver
|
default int |
count(DoublePredicate test) |
Counts the number of rows satisfying predicate
|
default int |
count(DoublePredicate test,
int max) |
Counts the number of rows satisfying predicate, but only upto the max value
|
default Selection |
eval(BiPredicate<Number,Number> predicate,
Number number) |
|
default Selection |
eval(DoublePredicate predicate) |
|
default double |
geometricMean() |
|
double |
getDouble(int index) |
|
default NumberInterpolator<T> |
interpolate() |
Provides the ability to create a new column with missing cells filled based off the value of
nearby cells.
|
default boolean |
isEmpty() |
Returns true if the column has no data
|
default Selection |
isIn(Collection<Number> numbers) |
|
default Selection |
isMissing() |
Returns a selection containing an index for every missing value in this column
|
default Selection |
isNotIn(Collection<Number> numbers) |
|
default Selection |
isNotMissing() |
Returns a selection containing an index for every non-missing value in this column
|
default double |
kendalls(NumericColumn<?> otherColumn) |
Returns the Kendall's Tau Rank correlation between the receiver and the otherColumn
|
default double |
kurtosis() |
|
NumericColumn<T> |
lag(int n) |
Returns a column of the same type and size as the receiver, containing the receivers values
offset by n.
|
default NumericColumn<T> |
lead(int n) |
Returns a column of the same type as the receiver, containing the receivers values offset -n
For example if you lead a column containing 2, 3, 4 by 1, you get a column containing 3, 4, NA.
|
default <R extends Column<RT>,RT> |
mapInto(DoubleFunction<? extends RT> fun,
R into) |
Maps the function across all rows, appending the results to the provided Column
|
default double |
max() |
|
default Optional<Double> |
max(it.unimi.dsi.fastutil.doubles.DoubleComparator comp) |
Returns the maximum row according to the provided Comparator
|
default double |
mean() |
|
default double |
median() |
|
default double |
min() |
|
default Optional<Double> |
min(it.unimi.dsi.fastutil.doubles.DoubleComparator comp) |
Returns the minimum row according to the provided Comparator
|
default boolean |
noneMatch(DoublePredicate test) |
Returns true if no row satisfies the predicate, false otherwise
|
default DoubleColumn |
pctChange(int periods) |
|
default double |
pearsons(NumericColumn<?> otherColumn) |
Returns the pearson's correlation between the receiver and the otherColumn
|
default double |
percentile(double percentile) |
|
default double |
populationVariance() |
|
default double |
product() |
|
default double |
quadraticMean() |
Returns the quadraticMean, aka the root-mean-square, for all values in this column
|
default double |
quartile1() |
|
default double |
quartile3() |
|
default double |
range() |
|
default double |
reduce(double initial,
DoubleBinaryOperator op) |
Reduction with binary operator and initial value
|
default Optional<Double> |
reduce(DoubleBinaryOperator op) |
Reduction with binary operator
|
default NumberRollingColumn |
rolling(int windowSize) |
Returns a
RollingColumn with the given windowSize, which can be used for performing
calculations on rolling subsets of my data |
void |
setPrintFormatter(NumberFormat format,
String missingValueString) |
|
void |
setPrintFormatter(NumberColumnFormatter formatter) |
|
default double |
skewness() |
|
default double |
spearmans(NumericColumn<?> otherColumn) |
Returns the Spearman's Rank correlation between the receiver and the otherColumn
|
default double |
standardDeviation() |
|
default Stats |
stats() |
|
default double |
sum() |
|
default Double |
summarize(Selection selection,
NumericAggregateFunction function) |
Summarizes the data in this column for all rows where the current value matches the selection
criteria
|
default Table |
summary() |
Returns a table containing a ColumnType specific summary of the data in this column
|
default double |
sumOfLogs() |
|
default double |
sumOfSquares() |
|
default double |
variance() |
|
default NumericColumn<T> |
where(Selection selection) |
Returns a new column containing the subset referenced by the
Selection |
allMatch, anyMatch, append, append, append, appendCell, appendCell, appendMissing, appendObj, asBytes, asList, asObjectArray, byteSize, clear, columnWidth, contains, count, count, countMissing, countUnique, emptyCopy, emptyCopy, filter, first, get, getString, getUnformattedString, indexOf, inRange, isMissing, last, map, map, mapInto, max, max, min, min, name, noneMatch, parser, print, reduce, reduce, removeMissing, rowComparator, 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, subtractdefault boolean isEmpty()
Columndefault double[] asDoubleArray()
asDoubleArray in interface NumberMapFunctionsdefault Selection eval(DoublePredicate predicate)
eval in interface NumberFiltersdefault Selection eval(BiPredicate<Number,Number> predicate, Number number)
eval in interface NumberFiltersdefault Selection isIn(Collection<Number> numbers)
isIn in interface NumberFiltersisIn in interface NumberFilterSpec<T extends Number>default Selection isNotIn(Collection<Number> numbers)
isNotIn in interface NumberFiltersisNotIn in interface NumberFilterSpec<T extends Number>default Selection isMissing()
ColumnisMissing in interface Column<T extends Number>isMissing in interface FilterSpec<T extends Number>isMissing in interface NumberFiltersdefault Selection isNotMissing()
ColumnisNotMissing in interface Column<T extends Number>isNotMissing in interface FilterSpec<T extends Number>isNotMissing in interface NumberFiltersdefault int count(DoublePredicate test)
test - the predicatedefault int count(DoublePredicate test, int max)
test - the predicatemax - the maximum number of rows to countdefault boolean allMatch(DoublePredicate test)
test - the predicatedefault boolean anyMatch(DoublePredicate test)
test - the predicatedefault boolean noneMatch(DoublePredicate test)
test - the predicatedefault Optional<Double> max(it.unimi.dsi.fastutil.doubles.DoubleComparator comp)
comp - default Optional<Double> min(it.unimi.dsi.fastutil.doubles.DoubleComparator comp)
comp - void setPrintFormatter(NumberFormat format, String missingValueString)
void setPrintFormatter(NumberColumnFormatter formatter)
default double reduce(double initial,
DoubleBinaryOperator op)
initial - initial valueop - the operatordefault Optional<Double> reduce(DoubleBinaryOperator op)
op - the operatordefault <R extends Column<RT>,RT> R mapInto(DoubleFunction<? extends RT> fun, R into)
fun - function to mapinto - Column to which results are appendeddefault NumericColumn<T> where(Selection selection)
ColumnSelectiondefault NumberInterpolator<T> interpolate()
Columninterpolate in interface Column<T extends Number>default Double summarize(Selection selection, NumericAggregateFunction function)
Example: myColumn.summarize(myColumn.isLessThan(100), AggregateFunctions.count);
default double sum()
sum in interface NumberMapFunctionsdefault double product()
default double mean()
default double median()
default double quartile1()
default double quartile3()
default double percentile(double percentile)
default double range()
default double max()
default double min()
default double variance()
default double populationVariance()
default double standardDeviation()
default double sumOfLogs()
default double sumOfSquares()
default double geometricMean()
default double quadraticMean()
default double kurtosis()
default double skewness()
default double pearsons(NumericColumn<?> otherColumn)
default double autoCorrelation()
default double autoCorrelation(int lag)
default double spearmans(NumericColumn<?> otherColumn)
otherColumn - A NumberColumn with no missing valuesorg.apache.commons.math3.exception.NotANumberException - if either column contains any missing valuesdefault double kendalls(NumericColumn<?> otherColumn)
default Table summary()
Columndefault Stats stats()
default NumberRollingColumn rolling(int windowSize)
ColumnRollingColumn with the given windowSize, which can be used for performing
calculations on rolling subsets of my datadefault DoubleColumn pctChange(int periods)
default NumericColumn<T> lead(int n)
ColumnNumericColumn<T> lag(int n)
ColumnFor example if you lag a column containing 2, 3, 4 by 1, you get a column containing NA, 2, 3
double getDouble(int index)
getDouble in interface NumberFiltersgetDouble in interface NumberMapFunctionsdefault LongColumn asLongColumn()
The exact behavior when overridden depends on the type of the receiver (LongColumn, FloatColumn, etc.)
In this version, the result is a copy of the original
default IntColumn asIntColumn()
The exact behavior when overridden depends on the type of the receiver (LongColumn, FloatColumn, etc.)
In this version, the result is a copy of the original
default FloatColumn asFloatColumn()
The exact behavior when overridden depends on the type of the receiver (LongColumn, FloatColumn, etc.)
In this version, the result is a copy of the original
default DoubleColumn asDoubleColumn()
The exact behavior when overridden depends on the type of the receiver (LongColumn, FloatColumn, etc.)
In this version, the result is a copy of the original
default ShortColumn asShortColumn()
NumericColumn<T> copy()
ColumnStringColumn asStringColumn()
asStringColumn in interface Column<T extends Number>StringColumn built using the column Column.getUnformattedString(int) methodCopyright © 2021. All rights reserved.