CategoricalColumn, Column, it.unimi.dsi.fastutil.doubles.DoubleIterable, IntConvertibleColumn, Iterable<Double>, NumberFillers<NumberColumn>, NumberFilters, NumberMapFunctionsDoubleColumnpublic interface NumberColumn extends Column, it.unimi.dsi.fastutil.doubles.DoubleIterable, IntConvertibleColumn, NumberMapFunctions, NumberFilters, NumberFillers<NumberColumn>, CategoricalColumn
| Modifier and Type | Field | Description |
|---|---|---|
static double |
MISSING_VALUE |
| Modifier and Type | Method | Description |
|---|---|---|
NumberColumn |
append(double d) |
|
NumberColumn |
append(float f) |
|
void |
append(Column column) |
|
NumberColumn |
appendCell(String object) |
|
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.ints.IntSet |
asIntegerSet() |
|
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 |
get(int index) |
|
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) |
|
boolean |
isMissing(int rowNumber) |
|
Selection |
isNotIn(Number... numbers) |
|
it.unimi.dsi.fastutil.doubles.DoubleIterator |
iterator() |
|
default double |
kendalls(NumberColumn otherColumn) |
Returns the Kendall's Tau Rank correlation between the receiver and the otherColumn
|
default double |
kurtosis() |
|
NumberColumn |
lag(int n) |
Returns a column of the same type and size as the receiver, containing the receivers values offset by n.
|
NumberColumn |
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 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() |
|
Table |
summary() |
|
default double |
sumOfLogs() |
|
default double |
sumOfSquares() |
|
it.unimi.dsi.fastutil.doubles.DoubleArrayList |
top(int n) |
|
Column |
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(Filter filter) |
|
NumberColumn |
where(Selection selection) |
countByCategoryappendMissing, columnWidth, create, first, inRange, isMissing, isNotMissing, last, name, print, removeMissing, rolling, rows, sampleN, sampleX, setName, subset, summarizeIf, title, typespliteratorfillWith, fillWith, fillWitheval, isBetweenExclusive, isBetweenInclusive, isCloseTo, isEqualTo, isEqualTo, isGreaterThan, isGreaterThan, isGreaterThanOrEqualTo, isGreaterThanOrEqualTo, isIn, isLessThan, isLessThan, isLessThanOrEqualTo, isLessThanOrEqualTo, isMissing, isNegative, isNonNegative, isNotEqualTo, isNotEqualTo, isNotIn, isNotMissing, isPositive, isZeroabs, add, add, add, asPercent, asRatio, bin, cube, cubeRoot, cumProd, cumSum, difference, divide, divide, divide, log10, log1p, logN, multiply, multiply, multiply, neg, normalize, pctChange, remainder, round, roundInt, sqrt, square, subtract, subtract, subtractstatic boolean valueIsMissing(double value)
void setPrintFormatter(NumberFormat format, String missingValueString)
void setPrintFormatter(NumberColumnFormatter formatter)
Stats stats()
it.unimi.dsi.fastutil.doubles.DoubleArrayList top(int n)
it.unimi.dsi.fastutil.doubles.DoubleArrayList bottom(int n)
Column unique()
Columndouble firstElement()
NumberColumn append(float f)
NumberColumn append(double d)
String getString(int row)
Columndouble getDouble(int row)
ColumnString getUnformattedString(int row)
getUnformattedString in interface ColumnNumberColumn emptyCopy()
ColumnNumberColumn emptyCopy(int rowSize)
ColumnNumberColumn lead(int n)
ColumnNumberColumn lag(int n)
ColumnFor example if you lag a column containing 2, 3, 4 by 1, you get a column containing NA, 2, 3
NumberColumn copy()
Columnvoid sortAscending()
sortAscending in interface Columnvoid sortDescending()
sortDescending in interface Columnboolean isEmpty()
ColumnNumberColumn appendCell(String object)
appendCell in interface ColumnInteger roundInt(int i)
long getLong(int i)
it.unimi.dsi.fastutil.ints.IntComparator rowComparator()
rowComparator in interface Columndouble get(int index)
get in interface NumberMapFunctionsNumberColumn set(int r, double value)
NumberColumn set(Selection rowSelection, double newValue)
double[] asDoubleArray()
asDoubleArray in interface Columnit.unimi.dsi.fastutil.doubles.DoubleIterator iterator()
NumberColumn where(Filter filter)
where in interface NumberFiltersNumberColumn 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 IntConvertibleColumnit.unimi.dsi.fastutil.ints.IntSet asIntegerSet()
asIntegerSet in interface IntConvertibleColumnit.unimi.dsi.fastutil.doubles.DoubleList dataInternal()
NumberFiltersdataInternal in interface NumberFiltersdefault int countMissing()
countMissing in interface Columndefault 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 ColumnCopyright © 2018. All rights reserved.