public abstract class ColStats extends Object
get*
methods)
will return formatted strings based on the data which have been
submitted to the acceptDatum(java.lang.Object)
method.Modifier | Constructor and Description |
---|---|
protected |
ColStats(ColumnInfo colInfo)
Constructs a new stats object.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
acceptDatum(Object value)
Data are submitted to this statistics accumulator using this method.
|
abstract void |
addStats(ColStats other)
Adds the accumulated content of a second ColStats object to this one.
|
String |
getColumn()
Returns column name.
|
String |
getGood()
Returns formatted number of non-blank values in accepted data.
|
protected abstract long |
getGoodCountValue()
Returns the number of good values in the accumulated data.
|
String |
getMax()
Returns formatted maximum value of accepted data.
|
protected abstract Object |
getMaximumValue()
Returns the maximum of the accumulated data.
|
String |
getMean()
Returns formatted mean value of accepted data.
|
protected abstract double |
getMeanValue()
Returns the mean of the accumulated data.
|
String |
getMin()
Returns formatted minimum value of accepted data.
|
protected abstract Object |
getMinimumValue()
Returns the minimum of the accumulated data.
|
String |
getStdDev()
Returns formatted standard deviation of accepted data.
|
String |
getVariance()
Returns formatted variance of accepted data.
|
protected abstract double |
getVarianceValue()
Returns the variance of the accumulated data.
|
static ColStats |
makeColStats(ColumnInfo info)
Factory method which returns a new ColStats value suitable for a
given ColumnInfo.
|
protected ColStats(ColumnInfo colInfo)
colInfo
- info on the values which will be passed to the
acceptDatum(java.lang.Object)
methodpublic String getColumn()
public String getMean()
public String getVariance()
public String getStdDev()
public String getMin()
public String getMax()
public String getGood()
public abstract void acceptDatum(Object value)
value
- data value to be accumulated into totalspublic abstract void addStats(ColStats other)
other
- compatible ColStats objectprotected abstract double getMeanValue()
protected abstract double getVarianceValue()
protected abstract Object getMinimumValue()
protected abstract Object getMaximumValue()
protected abstract long getGoodCountValue()
public static ColStats makeColStats(ColumnInfo info)
info
- column descriptioninfo
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.