CategoricalColumn<Double>, Column<Double>, Comparator<Double>, DoubleIterable, Iterable<Double>, NumberFillers<NumberColumn>, NumberFilters, NumberMapFunctionsDoubleColumnpublic interface NumberColumn extends NumberMapFunctions, DoubleIterable, NumberFilters, NumberFillers<NumberColumn>, CategoricalColumn<Double>
| Modifier and Type | Field | Description |
|---|---|---|
static double |
MISSING_VALUE |
| Modifier and Type | Method | Description |
|---|---|---|
NumberColumn |
append(double d) |
|
NumberColumn |
append(float f) |
|
NumberColumn |
append(int i) |
|
NumberColumn |
appendCell(String object) |
|
NumberColumn |
appendMissing() |
Appends a missing value appropriate to the column
|
byte[] |
asBytes(int rowNumber) |
Returns the contents of the cell at rowNumber as a byte[].
|
DateTimeColumn |
asDateTimes(ZoneOffset offset) |
Returns a DateTimeColumn where each value is the LocalDateTime represented by the values in this column
The values in this column must be longs that represent the time in milliseconds from the epoch as in standard
Java date/time calculations
|
double[] |
asDoubleArray() |
|
int[] |
asIntArray() |
|
it.unimi.dsi.fastutil.doubles.DoubleSet |
asSet() |
|
it.unimi.dsi.fastutil.doubles.DoubleArrayList |
bottom(int n) |
|
int |
byteSize() |
Returns the width of a cell in this column, in bytes.
|
void |
clear() |
|
boolean |
contains(double value) |
|
NumberColumn |
copy() |
Returns a deep copy of the receiver
|
default int |
countMissing() |
Returns the count of missing values in this column
|
default int |
countUnique() |
Returns the number of unique values in this column, excluding missing values
|
it.unimi.dsi.fastutil.doubles.DoubleList |
dataInternal() |
Returns a clone of the internal data structure
|
NumberColumn |
emptyCopy() |
Returns a copy of the receiver with no data.
|
NumberColumn |
emptyCopy(int rowSize) |
Returns an empty copy of the receiver, with its internal storage initialized to the given row size.
|
Selection |
eval(DoublePredicate predicate) |
|
Selection |
eval(DoubleBiPredicate predicate,
Number value) |
|
Selection |
eval(DoubleBiPredicate predicate,
NumberColumn otherColumn) |
|
Selection |
eval(DoubleRangePredicate predicate,
Number rangeStart,
Number rangeEnd) |
|
double |
firstElement() |
|
default double |
geometricMean() |
|
double |
getDouble(int row) |
Returns a double representation of the value at the given row.
|
long |
getLong(int i) |
|
String |
getString(int row) |
Returns a string representation of the value at the given row.
|
String |
getUnformattedString(int row) |
|
boolean |
isEmpty() |
Returns true if the column has no data
|
Selection |
isIn(Number... numbers) |
|
default Selection |
isMissing() |
|
boolean |
isMissing(int rowNumber) |
|
Selection |
isNotIn(Number... numbers) |
|
default Selection |
isNotMissing() |
|
default double |
kendalls(NumberColumn otherColumn) |
Returns the Kendall's Tau Rank correlation between the receiver and the otherColumn
|
default double |
kurtosis() |
|
default double |
max() |
|
default double |
mean() |
|
default double |
median() |
|
default double |
min() |
|
default double |
pearsons(NumberColumn 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() |
|
Integer |
roundInt(int i) |
|
it.unimi.dsi.fastutil.ints.IntComparator |
rowComparator() |
|
NumberColumn |
set(int r,
double value) |
|
NumberColumn |
set(Selection rowSelection,
double newValue) |
|
void |
setPrintFormatter(NumberFormat format,
String missingValueString) |
|
void |
setPrintFormatter(NumberColumnFormatter formatter) |
|
int |
size() |
|
default double |
skewness() |
|
void |
sortAscending() |
|
void |
sortDescending() |
|
default double |
spearmans(NumberColumn otherColumn) |
Returns the Spearman's Rank correlation between the receiver and the otherColumn
|
default double |
standardDeviation() |
|
Stats |
stats() |
|
default double |
sum() |
|
default Double |
summarizeIf(Selection selection,
NumericAggregateFunction function) |
|
Table |
summary() |
|
default double |
sumOfLogs() |
|
default double |
sumOfSquares() |
|
it.unimi.dsi.fastutil.doubles.DoubleArrayList |
top(int n) |
|
NumberColumn |
unique() |
Returns a column of the same type as the receiver, containing only the unique values of the receiver.
|
static boolean |
valueIsMissing(double value) |
|
default double |
variance() |
|
NumberColumn |
where(Selection selection) |
asIntegerSet, countByCategoryappend, append, appendCell, asObjectArray, columnWidth, create, doWithEach, fillMissing, fillMissing, first, get, inRange, lag, last, lead, name, print, removeMissing, rolling, rows, sampleN, sampleX, set, setName, subset, title, typecompare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongdoubleIteratorfillWith, fillWith, fillWitheval, isBetweenExclusive, isBetweenInclusive, isCloseTo, isEqualTo, isEqualTo, isGreaterThan, isGreaterThan, isGreaterThanOrEqualTo, isGreaterThanOrEqualTo, isIn, isLessThan, isLessThan, isLessThanOrEqualTo, isLessThanOrEqualTo, isNegative, isNonNegative, isNotEqualTo, isNotEqualTo, isNotIn, isPositive, isZeroabs, add, add, add, asPercent, asRatio, bin, cube, cubeRoot, cumProd, cumSum, difference, divide, divide, divide, log10, log1p, logN, multiply, multiply, multiply, name, neg, normalize, pctChange, power, remainder, round, roundInt, sqrt, square, subtract, subtract, subtractstatic boolean valueIsMissing(double value)
void setPrintFormatter(NumberFormat format, String missingValueString)
void setPrintFormatter(NumberColumnFormatter formatter)
int size()
size in interface Column<Double>size in interface NumberMapFunctionsStats stats()
it.unimi.dsi.fastutil.doubles.DoubleArrayList top(int n)
it.unimi.dsi.fastutil.doubles.DoubleArrayList bottom(int n)
NumberColumn unique()
Columndouble firstElement()
NumberColumn append(float f)
NumberColumn append(double d)
NumberColumn append(int i)
String getString(int row)
Columndouble getDouble(int row)
ColumngetDouble in interface Column<Double>getDouble in interface NumberMapFunctionsrow - The index of the row.String getUnformattedString(int row)
getUnformattedString in interface Column<Double>NumberColumn emptyCopy()
ColumnNumberColumn emptyCopy(int rowSize)
ColumnNumberColumn copy()
Columnvoid sortAscending()
sortAscending in interface Column<Double>void sortDescending()
sortDescending in interface Column<Double>boolean isEmpty()
ColumnisEmpty in interface Column<Double>isEmpty in interface NumberMapFunctionsNumberColumn appendCell(String object)
appendCell in interface Column<Double>Integer roundInt(int i)
long getLong(int i)
default Double summarizeIf(Selection selection, NumericAggregateFunction function)
it.unimi.dsi.fastutil.ints.IntComparator rowComparator()
rowComparator in interface Column<Double>NumberColumn set(int r, double value)
NumberColumn set(Selection rowSelection, double newValue)
double[] asDoubleArray()
asDoubleArray in interface Column<Double>asDoubleArray in interface NumberMapFunctionsNumberColumn where(Selection selection)
Selection eval(DoublePredicate predicate)
eval in interface NumberFiltersSelection eval(DoubleBiPredicate predicate, NumberColumn otherColumn)
eval in interface NumberFiltersSelection eval(DoubleBiPredicate predicate, Number value)
eval in interface NumberFiltersSelection eval(DoubleRangePredicate predicate, Number rangeStart, Number rangeEnd)
eval in interface NumberFiltersSelection isIn(Number... numbers)
isIn in interface NumberFiltersSelection isNotIn(Number... numbers)
isNotIn in interface NumberFiltersit.unimi.dsi.fastutil.doubles.DoubleSet asSet()
boolean contains(double value)
int byteSize()
Columnbyte[] asBytes(int rowNumber)
Columnint[] asIntArray()
asIntArray in interface CategoricalColumn<Double>it.unimi.dsi.fastutil.doubles.DoubleList dataInternal()
NumberFiltersdataInternal in interface NumberFiltersNumberColumn appendMissing()
ColumnappendMissing in interface Column<Double>default int countMissing()
countMissing in interface Column<Double>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()
DateTimeColumn asDateTimes(ZoneOffset offset)
offset - The ZoneOffset to use in the calculationdefault double pearsons(NumberColumn otherColumn)
default double spearmans(NumberColumn otherColumn)
otherColumn - A NumberColumn with no missing valuesorg.apache.commons.math3.exception.NotANumberException - if either column contains any missing valuesdefault double kendalls(NumberColumn otherColumn)
default int countUnique()
countUnique in interface Column<Double>default Selection isMissing()
isMissing in interface Column<Double>isMissing in interface NumberFiltersdefault Selection isNotMissing()
isNotMissing in interface Column<Double>isNotMissing in interface NumberFiltersCopyright © 2018. All rights reserved.