public class DataIteratorMath extends java.lang.Object
DataIterator
classes.Constructor and Description |
---|
DataIteratorMath() |
Modifier and Type | Method and Description |
---|---|
static long |
count(DataIterator it)
Deprecated.
Use
DataIteratorUtil.count(DataIterator) instead. |
static double |
max(DataIterator it)
Returns the maximum value found in the specified
DataIterator . |
static double |
mean(DataIterator it)
Returns the mean value found in the specified
DataIterator . |
static double |
min(DataIterator it)
Returns the minimum value found in the specified
DataIterator . |
static double |
sum(DataIterator it)
Returns the sum of all values contained in the specified
DataIterator . |
public DataIteratorMath()
@Deprecated public static long count(DataIterator it)
DataIteratorUtil.count(DataIterator)
instead.public static double sum(DataIterator it)
DataIterator
.
Returns 0
if no value in DataIterator
.public static double min(DataIterator it)
DataIterator
.
Returns Double.MAX_VALUE
if no value in DataIterator
.public static double max(DataIterator it)
DataIterator
.
Returns Double.MIN_VALUE
if no value in DataIterator
.public static double mean(DataIterator it)