public abstract class NumberColumn<T extends Number & Comparable<T>,C extends NumberColumn<T,C>> extends BasicColumn<T,C>
GROW_FACTOR, INIT_SIZE, valuesERROR_APPENDING| Constructor and Description |
|---|
NumberColumn() |
NumberColumn(String name) |
NumberColumn(String name,
T[] values) |
| Modifier and Type | Method and Description |
|---|---|
C |
add(Number value)
Adds a
Number to the values in this column. |
C |
add(NumberColumn column)
Adds the values of another
NumberColumn to the values in this column. |
C |
divide(Number value)
Divides all values in this column by a
Number. |
C |
divide(NumberColumn column)
Divides the values of this column by the values of another
NumberColumn. |
T |
get(int index)
Returns the value at a specified index
|
T |
max()
Returns the maximum of all values in this column
|
Double |
mean()
Returns the mean of all values in this column
|
T |
median()
Returns the median of all values in this column
|
T |
min()
Returns the minimum of all values in this column
|
C |
multiply(Number value)
Multiplies a
Number to the values in this column. |
C |
multiply(NumberColumn column)
Multiplies the values of another
NumberColumn to the values in this column. |
C |
subtract(Number value)
Subtracts a
Number to the values in this column. |
C |
subtract(NumberColumn column)
Subtracts the values of another
NumberColumn from the values in this column. |
T |
sum()
Returns the sum of all values in this column
|
clear, contains, containsAll, doAppend, doAppendAll, doAppendNA, doMap, doReverse, doSet, doSetNA, doSort, doSort, isEmpty, isNA, iterator, size, toArray, toArray, uniqappend, append, append, append, appendAll, appendNA, copy, endDataFrameAppend, getDataFrame, getName, getParser, getThis, getType, getValueFromRow, getValueFromRow, map, notifyDataFrameColumnChanged, notifyDataFrameValueChanged, reverse, set, setDataFrame, setNA, setName, sort, sort, startDataFrameAppend, toDouble, transform, transform, validateAppendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic NumberColumn(String name)
public NumberColumn()
public T get(int index)
DataFrameColumnget in class BasicColumn<T extends Number & Comparable<T>,C extends NumberColumn<T,C>>index - Index of the returned valuepublic T median()
public Double mean()
public T min()
public T max()
public T sum()
public C add(NumberColumn column)
NumberColumn to the values in this column.
column[index] += otherColumn[index]
Calls DataFrameColumn.notifyDataFrameValueChanged(int) to ensure data frame index consistency
column - column containing the values that are addedpublic C subtract(NumberColumn column)
NumberColumn from the values in this column.
column[index] -= otherColumn[index]
Calls DataFrameColumn.notifyDataFrameValueChanged(int) to ensure data frame index consistency
column - column containing the values that are subtractedpublic C multiply(NumberColumn column)
NumberColumn to the values in this column.
column[index] *= otherColumn[index]
Calls DataFrameColumn.notifyDataFrameValueChanged(int) to ensure data frame index consistency
column - column containing the values that are multipliedpublic C divide(NumberColumn column)
NumberColumn.
column[index] /= otherColumn[index]
Calls DataFrameColumn.notifyDataFrameValueChanged(int) to ensure data frame index consistency
column - column containing the values that are dividedpublic C add(Number value)
Number to the values in this column.
column[index] += number
Calls DataFrameColumn.notifyDataFrameValueChanged(int) to ensure data frame index consistency
value - value added to all values in this columnpublic C subtract(Number value)
Number to the values in this column.
column[index] -= number
Calls DataFrameColumn.notifyDataFrameValueChanged(int) to ensure data frame index consistency
value - value subtracted from all values in this columnpublic C multiply(Number value)
Number to the values in this column.
column[index] *= number
Calls DataFrameColumn.notifyDataFrameValueChanged(int) to ensure data frame index consistency
value - value multiplied to all values in this columnpublic C divide(Number value)
Number.
column[index] /= number
Calls DataFrameColumn.notifyDataFrameValueChanged(int) to ensure data frame index consistency
value - the value all values in this column are divided byCopyright © 2017. All rights reserved.