public abstract class ColStats
extends java.lang.Object
acceptDatum(java.lang.Object)
method.Modifier | Constructor | Description |
---|---|---|
protected |
ColStats(uk.ac.starlink.table.ColumnInfo colInfo) |
Constructs a new stats object.
|
Modifier and Type | Method | Description |
---|---|---|
protected abstract void |
acceptDatum(java.lang.Object value) |
Data are submitted to this statistics accumulator using this method.
|
java.lang.String |
getColumn() |
Returns column name.
|
java.lang.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.
|
java.lang.String |
getMax() |
Returns formatted maximum value of accepted data.
|
protected abstract java.lang.Object |
getMaximumValue() |
Returns the maximum of the accumulated data.
|
java.lang.String |
getMean() |
Returns formatted mean value of accepted data.
|
protected abstract double |
getMeanValue() |
Returns the mean of the accumulated data.
|
java.lang.String |
getMin() |
Returns formatted minimum value of accepted data.
|
protected abstract java.lang.Object |
getMinimumValue() |
Returns the minimum of the accumulated data.
|
java.lang.String |
getStdDev() |
Returns formatted standard deviation of accepted data.
|
java.lang.String |
getVariance() |
Returns formatted variance of accepted data.
|
protected abstract double |
getVarianceValue() |
Returns the variance of the accumulated data.
|
static ColStats |
makeColStats(uk.ac.starlink.table.ColumnInfo info) |
Factory method which returns a new ColStats value suitable for a
given ColumnInfo.
|
protected ColStats(uk.ac.starlink.table.ColumnInfo colInfo)
colInfo
- info on the values which will be passed to the
acceptDatum(java.lang.Object)
methodpublic java.lang.String getColumn()
public java.lang.String getMean()
public java.lang.String getVariance()
public java.lang.String getStdDev()
public java.lang.String getMin()
public java.lang.String getMax()
public java.lang.String getGood()
protected abstract void acceptDatum(java.lang.Object value)
value
- data value to be accumulated into totalsprotected abstract double getMeanValue()
protected abstract double getVarianceValue()
protected abstract java.lang.Object getMinimumValue()
protected abstract java.lang.Object getMaximumValue()
protected abstract long getGoodCountValue()
public static ColStats makeColStats(uk.ac.starlink.table.ColumnInfo info)
info
- column descriptionCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.