Package edu.cnu.mdi.splot.pdata
Class DataColumn
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Double>,Collection<Double>,List<Double>,RandomAccess
A named numeric column used by sPlot datasets.
This is currently a thin extension of DataList that provides basic
statistics.
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetMean()Get mean of the data in this column.doubleStandard deviation of the data in this column.doubleGet (population) variance of the data in this column.Methods inherited from class edu.cnu.mdi.splot.pdata.DataList
add, add, addAll, addAll, clear, getMax, getMin, recomputeMinMax, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, valuesMethods inherited from class java.util.ArrayList
clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Constructor Details
-
DataColumn
public DataColumn()
-
-
Method Details
-
getMean
public double getMean()Get mean of the data in this column.- Returns:
- mean, or NaN if empty
-
getVariance
public double getVariance()Get (population) variance of the data in this column.- Returns:
- variance, or NaN if empty
-
getStandardDeviation
public double getStandardDeviation()Standard deviation of the data in this column.- Returns:
- standard deviation, or NaN if empty
-