public class TableStats extends Object
Modifier and Type | Field and Description |
---|---|
static double |
MAD_SCALE
Value by which Median Absolute Deviation is scaled to estimate SD.
|
Constructor and Description |
---|
TableStats(UnivariateStats[] colStats)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static double[] |
calculateMads(StarTable table,
RowRunner runner,
java.util.function.Supplier<Quantiler> qSupplier,
double[] medians)
Calculates Median Absolute Deviations for each table column.
|
static TableStats |
calculateStats(StarTable table,
RowRunner runner,
java.util.function.Supplier<Quantiler> qSupplier,
boolean doCard)
Calculates statistics from a given table.
|
UnivariateStats[] |
getColumnStats()
Returns the array of per-column statistics accumulators.
|
long |
getRowCount()
Returns the number of rows for which statistics have been
accumulated.
|
public static final double MAD_SCALE
public TableStats(UnivariateStats[] colStats)
colStats
- array of per-column statistics accumulatorspublic UnivariateStats[] getColumnStats()
public long getRowCount()
public static TableStats calculateStats(StarTable table, RowRunner runner, java.util.function.Supplier<Quantiler> qSupplier, boolean doCard) throws IOException
table
- table supplying datarunner
- controls sequential/parallel processingqSupplier
- supplies quantile accumulators if quantiles are
required, otherwise nulldoCard
- whether to count distinct valuesIOException
public static double[] calculateMads(StarTable table, RowRunner runner, java.util.function.Supplier<Quantiler> qSupplier, double[] medians) throws IOException
table
- input tablerunner
- controls sequential/parallel processingqSupplier
- supplies quantile accumulatorsmedians
- per-column array of median values;
MADs will be calculated only for elements with
non-null valuesIOException
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.