public class LongColumn extends AbstractColumn implements LongMapUtils, NumericColumn
| Modifier and Type | Field and Description |
|---|---|
static long |
MISSING_VALUE |
isEqualTo, isEven, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isMissing, isNegative, isNonNegative, isNotEqualTo, isNotMissing, isOdd, isPositive, isZero| Constructor and Description |
|---|
LongColumn(ColumnMetadata metadata) |
LongColumn(String name) |
LongColumn(String name,
int initialSize) |
LongColumn(String name,
long[] arr) |
LongColumn(String name,
it.unimi.dsi.fastutil.longs.LongArrayList data) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(Column column) |
void |
append(long i) |
LongColumn |
append(LongColumn column2) |
void |
appendCell(String object) |
byte[] |
asBytes(int rowNumber)
Returns the contents of the cell at rowNumber as a byte[]
|
it.unimi.dsi.fastutil.longs.LongSet |
asSet() |
it.unimi.dsi.fastutil.longs.LongArrayList |
bottom(int n)
Returns the smallest ("bottom") n values in the column
|
int |
byteSize()
Returns the width of a cell in this column, in bytes
|
void |
clear() |
boolean |
contains(long value) |
static long |
convert(String stringValue)
Returns a float that is parsed from the given String
|
LongColumn |
copy()
Returns a deep copy of the receiver
|
int |
countMissing()
Returns the count of missing values in this column
|
int |
countUnique()
Returns the count of unique values in this column
|
it.unimi.dsi.fastutil.longs.LongArrayList |
data() |
LongColumn |
difference()
Returns a new column of the same type as the receiver, such that the values in the new column
contain the difference between each cell in the original and it's predecessor.
|
FloatColumn |
divide(FloatColumn column2) |
LongColumn |
divide(LongColumn column2) |
LongColumn |
emptyCopy()
Returns a copy of the receiver with no data.
|
LongColumn |
emptyCopy(int rowSize)
Returns an empty copy of the receiver, with its internal storage initialized to the given row size
|
long |
firstElement() |
double |
geometricMean() |
long |
get(int index) |
float |
getFloat(int index) |
String |
getString(int row)
Returns a string representation of the value at the given row
|
boolean |
isEmpty()
Returns true if the column has no data
|
Selection |
isEqualTo(long i) |
Selection |
isEqualTo(LongColumn f) |
Selection |
isEven() |
Selection |
isGreaterThan(long i) |
Selection |
isGreaterThanOrEqualTo(long i) |
Selection |
isLessThan(long i) |
Selection |
isLessThanOrEqualTo(long f) |
Selection |
isMissing() |
Selection |
isNegative() |
Selection |
isNonNegative() |
Selection |
isNotEqualTo(long i) |
Selection |
isNotMissing() |
Selection |
isOdd() |
Selection |
isPositive() |
Selection |
isZero() |
it.unimi.dsi.fastutil.longs.LongIterator |
iterator() |
double |
kurtosis() |
double |
max() |
double |
mean() |
double |
median() |
double |
min() |
FloatColumn |
multiply(FloatColumn column2) |
LongColumn |
multiply(LongColumn column2) |
double |
percentile(double percentile) |
double |
populationVariance() |
String |
print() |
double |
product() |
double |
quadraticMean()
Returns the quadraticMean, aka the root-mean-square, for all values in this column
|
double |
quartile1() |
double |
quartile3() |
double |
range() |
LongColumn |
remainder(LongColumn column2) |
it.unimi.dsi.fastutil.ints.IntComparator |
rowComparator() |
Selection |
select(LongBiPredicate predicate,
long valueToCompareAgainst) |
Selection |
select(LongPredicate predicate) |
LongColumn |
select(Selection selection) |
LongColumn |
selectIf(LongPredicate predicate) |
void |
set(int index,
long value) |
int |
size() |
double |
skewness() |
void |
sortAscending() |
void |
sortDescending() |
double |
standardDeviation() |
Stats |
stats() |
LongColumn |
subtract(LongColumn column2) |
long |
sum() |
Table |
summary() |
double |
sumOfLogs() |
double |
sumOfSquares() |
double[] |
toDoubleArray() |
it.unimi.dsi.fastutil.floats.FloatArrayList |
toFloatArray() |
it.unimi.dsi.fastutil.longs.LongArrayList |
top(int n)
Returns the largest ("top") n values in the column
|
String |
toString() |
ColumnType |
type()
Returns this column's ColumnType
|
LongColumn |
unique()
Returns a column of the same type as the receiver, containing only the unique values of the receiver
|
double |
variance() |
columnMetadata, columnWidth, comment, id, metadata, name, setComment, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasPercent, asRatio, difference, names, pluscolumnMetadata, columnWidth, comment, first, first, id, last, last, metadata, name, setComment, setName, subset, titleforEach, spliteratorpublic LongColumn(String name)
public LongColumn(String name, int initialSize)
public LongColumn(String name, long[] arr)
public LongColumn(String name, it.unimi.dsi.fastutil.longs.LongArrayList data)
public LongColumn(ColumnMetadata metadata)
public static long convert(String stringValue)
We remove any commas before parsing
public it.unimi.dsi.fastutil.longs.LongArrayList data()
public ColumnType type()
Columnpublic void append(long i)
public void set(int index,
long value)
public Selection isLessThan(long i)
public Selection isGreaterThan(long i)
public Selection isGreaterThanOrEqualTo(long i)
public Selection isLessThanOrEqualTo(long f)
public Selection isEqualTo(long i)
public Selection isNotEqualTo(long i)
public Selection isEqualTo(LongColumn f)
public Stats stats()
public int countUnique()
ColumncountUnique in interface Columnpublic LongColumn unique()
Columnpublic LongColumn remainder(LongColumn column2)
public LongColumn append(LongColumn column2)
public LongColumn subtract(LongColumn column2)
public LongColumn multiply(LongColumn column2)
public FloatColumn multiply(FloatColumn column2)
public FloatColumn divide(FloatColumn column2)
public LongColumn divide(LongColumn column2)
public String getString(int row)
Columnpublic LongColumn emptyCopy()
Columnpublic LongColumn emptyCopy(int rowSize)
Columnpublic void sortAscending()
sortAscending in interface Columnpublic void sortDescending()
sortDescending in interface Columnpublic LongColumn copy()
Columnpublic int countMissing()
countMissing in interface Columnpublic boolean isEmpty()
Columnpublic void appendCell(String object)
appendCell in interface ColumnappendCell in class AbstractColumnpublic long get(int index)
get in interface LongMapUtilspublic float getFloat(int index)
getFloat in interface NumericColumnpublic it.unimi.dsi.fastutil.ints.IntComparator rowComparator()
rowComparator in interface Columnpublic long sum()
sum in interface LongMapUtilspublic double product()
product in interface NumericColumnpublic double mean()
mean in interface NumericColumnpublic double median()
median in interface NumericColumnpublic double quartile1()
quartile1 in interface NumericColumnpublic double quartile3()
quartile3 in interface NumericColumnpublic double percentile(double percentile)
percentile in interface NumericColumnpublic double range()
range in interface NumericColumnpublic double max()
max in interface NumericColumnpublic double min()
min in interface NumericColumnpublic double variance()
variance in interface NumericColumnpublic double populationVariance()
populationVariance in interface NumericColumnpublic double standardDeviation()
standardDeviation in interface NumericColumnpublic double sumOfLogs()
sumOfLogs in interface NumericColumnpublic double sumOfSquares()
sumOfSquares in interface NumericColumnpublic double geometricMean()
geometricMean in interface NumericColumnpublic double quadraticMean()
quadraticMean in interface NumericColumnpublic double kurtosis()
kurtosis in interface NumericColumnpublic double skewness()
skewness in interface NumericColumnpublic long firstElement()
public Selection isPositive()
public Selection isNegative()
public Selection isNonNegative()
public Selection isZero()
public Selection isEven()
public Selection isOdd()
public it.unimi.dsi.fastutil.floats.FloatArrayList toFloatArray()
public LongColumn select(Selection selection)
public LongColumn selectIf(LongPredicate predicate)
public it.unimi.dsi.fastutil.longs.LongArrayList 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 it.unimi.dsi.fastutil.longs.LongArrayList 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 it.unimi.dsi.fastutil.longs.LongIterator iterator()
public Selection select(LongPredicate predicate)
public Selection select(LongBiPredicate predicate, long valueToCompareAgainst)
public double[] toDoubleArray()
toDoubleArray in interface NumericColumntoDoubleArray in interface Columnpublic it.unimi.dsi.fastutil.longs.LongSet asSet()
public boolean contains(long value)
public Selection isNotMissing()
isNotMissing in interface Columnpublic int byteSize()
Columnpublic byte[] asBytes(int rowNumber)
public LongColumn difference()
Columndifference in interface Columndifference in class AbstractColumnCopyright © 2017. All rights reserved.