public class PassThroughStatisticAdaptor extends AbstractMethylationAdapter
| Constructor and Description |
|---|
PassThroughStatisticAdaptor(int maxValue,
double fixedValue) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
statName()
Return the name of the statistic estimated by this adaptor.
|
calculate, checkProviderType, getC, getCm, ignorePair, pairCovariates, reset, setIgnorePair, setObservationWriterpublic PassThroughStatisticAdaptor(int maxValue,
double fixedValue)
public String statName()
StatisticAdaptorpublic double calculate(Object dataProvider, int sampleIndexA, int sampleIndexB, int... covariate)
StatisticAdaptorcalculate in interface StatisticAdaptorcalculate in class AbstractMethylationAdapterpublic double calculateNoCovariate(int... a)
StatisticAdaptora - values used to calculate the statistic. The meaning of the values and their order is implementation dependent.public double calculateWithCovariate(int covariate,
int... a)
StatisticAdaptorcovariate - 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.public double getMaximumStatistic()
StatisticAdaptorpublic double getRange()
StatisticAdaptorCopyright © 2017 Campagne Laboratory. All rights reserved.