CategoricalColumn
, Column
, it.unimi.dsi.fastutil.doubles.DoubleIterable
, IntConvertibleColumn
, Iterable<Double>
, NumberFillers<NumberColumn>
, NumberFilters
, NumberMapFunctions
DoubleColumn
public 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) |
countByCategory
appendMissing, columnWidth, create, first, inRange, isMissing, isNotMissing, last, name, print, removeMissing, rolling, rows, sampleN, sampleX, setName, subset, summarizeIf, title, type
spliterator
fillWith, fillWith, fillWith
eval, isBetweenExclusive, isBetweenInclusive, isCloseTo, isEqualTo, isEqualTo, isGreaterThan, isGreaterThan, isGreaterThanOrEqualTo, isGreaterThanOrEqualTo, isIn, isLessThan, isLessThan, isLessThanOrEqualTo, isLessThanOrEqualTo, isMissing, isNegative, isNonNegative, isNotEqualTo, isNotEqualTo, isNotIn, isNotMissing, isPositive, isZero
abs, 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, subtract
static 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()
Column
double firstElement()
NumberColumn append(float f)
NumberColumn append(double d)
String getString(int row)
Column
double getDouble(int row)
Column
String getUnformattedString(int row)
getUnformattedString
in interface Column
NumberColumn emptyCopy()
Column
NumberColumn emptyCopy(int rowSize)
Column
NumberColumn lead(int n)
Column
NumberColumn lag(int n)
Column
For example if you lag a column containing 2, 3, 4 by 1, you get a column containing NA, 2, 3
NumberColumn copy()
Column
void sortAscending()
sortAscending
in interface Column
void sortDescending()
sortDescending
in interface Column
boolean isEmpty()
Column
NumberColumn appendCell(String object)
appendCell
in interface Column
Integer roundInt(int i)
long getLong(int i)
it.unimi.dsi.fastutil.ints.IntComparator rowComparator()
rowComparator
in interface Column
double get(int index)
get
in interface NumberMapFunctions
NumberColumn set(int r, double value)
NumberColumn set(Selection rowSelection, double newValue)
double[] asDoubleArray()
asDoubleArray
in interface Column
it.unimi.dsi.fastutil.doubles.DoubleIterator iterator()
NumberColumn where(Filter filter)
where
in interface NumberFilters
NumberColumn where(Selection selection)
Selection eval(DoublePredicate predicate)
eval
in interface NumberFilters
Selection eval(DoubleBiPredicate predicate, NumberColumn otherColumn)
eval
in interface NumberFilters
Selection eval(DoubleBiPredicate predicate, Number value)
eval
in interface NumberFilters
Selection eval(DoubleRangePredicate predicate, Number rangeStart, Number rangeEnd)
eval
in interface NumberFilters
Selection isIn(Number... numbers)
isIn
in interface NumberFilters
Selection isNotIn(Number... numbers)
isNotIn
in interface NumberFilters
it.unimi.dsi.fastutil.doubles.DoubleSet asSet()
boolean contains(double value)
int byteSize()
Column
byte[] asBytes(int rowNumber)
Column
int[] asIntArray()
asIntArray
in interface IntConvertibleColumn
it.unimi.dsi.fastutil.ints.IntSet asIntegerSet()
asIntegerSet
in interface IntConvertibleColumn
it.unimi.dsi.fastutil.doubles.DoubleList dataInternal()
NumberFilters
dataInternal
in interface NumberFilters
default int countMissing()
countMissing
in interface Column
default double sum()
sum
in interface NumberMapFunctions
default 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
Copyright © 2018. All rights reserved.