public interface StatisticAdaptor extends Serializable
| Modifier and Type | Method and Description |
|---|---|
double |
calculate(it.unimi.dsi.fastutil.ints.IntArrayList valuesSampleA,
it.unimi.dsi.fastutil.ints.IntArrayList valuesSampleB,
it.unimi.dsi.fastutil.ints.IntArrayList covariatesSampleA,
it.unimi.dsi.fastutil.ints.IntArrayList covariatesSampleB)
Estimate a statistic given values and covariates for two samples A and B.
|
double |
calculate(Object dataProvider,
int sampleIndexA,
int sampleIndexB,
int... covariate)
Calculate a statistic.
|
double |
calculateNoCovariate(int... a)
Estimate a statistic given some integers.
|
double |
calculateWithCovariate(int covariate,
int... a)
Estimate a statistic given a covariate and some integers.
|
double |
getMaximumStatistic()
Return the maximum value that the scaled statistic can attain.
|
double |
getRange()
Get the range of the scaled statistic.
|
boolean |
ignorePair()
Indicate whether the pair of observation was ignored (e.g., because data was missing in one sample for instance).
|
int[] |
pairCovariates()
Return the covariates associated with the pair for which the statistic is estimated.
|
void |
reset()
Reset the adaptor to accept a new pair of observations.
|
void |
setObservationWriter(ObservationWriter obsWriter)
Set an optional observation writer on this statistic.
|
String |
statName()
Return the name of the statistic estimated by this adaptor.
|
String statName()
double calculateNoCovariate(int... a)
a - values used to calculate the statistic. The meaning of the values and their order is implementation dependent.double calculateWithCovariate(int covariate,
int... a)
covariate - a relevant covariate of the statistic. Some calculator may use the covariate to normalize the
value of the statistic.a - values used to calculate the statistic. The meaning of the values and their order is implementation dependent.double calculate(it.unimi.dsi.fastutil.ints.IntArrayList valuesSampleA,
it.unimi.dsi.fastutil.ints.IntArrayList valuesSampleB,
it.unimi.dsi.fastutil.ints.IntArrayList covariatesSampleA,
it.unimi.dsi.fastutil.ints.IntArrayList covariatesSampleB)
valuesSampleA - valuesSampleB - covariatesSampleA - covariatesSampleB - double getMaximumStatistic()
double getRange()
double calculate(Object dataProvider, int sampleIndexA, int sampleIndexB, int... covariate)
dataProvider - sampleIndexA - sampleIndexB - covariate - int[] pairCovariates()
void reset()
boolean ignorePair()
void setObservationWriter(ObservationWriter obsWriter)
obsWriter - Copyright © 2017 Campagne Laboratory. All rights reserved.