public abstract class AbstractMethylationAdapter extends Object implements StatisticAdaptor
| Constructor and Description |
|---|
AbstractMethylationAdapter() |
| 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.
|
protected void |
checkProviderType(Object dataProvider) |
protected int |
getC(int sampleIndexA,
Object sampleDataPool,
int contextIndex) |
protected int |
getCm(int sampleIndexA,
Object sampleDataPool,
int contextIndex) |
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 |
setIgnorePair(boolean b) |
void |
setObservationWriter(ObservationWriter obsWriter)
Set an optional observation writer on this statistic.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcalculateNoCovariate, calculateWithCovariate, getMaximumStatistic, getRange, statNamepublic 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)
StatisticAdaptorcalculate in interface StatisticAdaptorpublic void setIgnorePair(boolean b)
public double calculate(Object dataProvider, int sampleIndexA, int sampleIndexB, int... covariate)
StatisticAdaptorcalculate in interface StatisticAdaptorprotected void checkProviderType(Object dataProvider)
protected int getC(int sampleIndexA,
Object sampleDataPool,
int contextIndex)
protected int getCm(int sampleIndexA,
Object sampleDataPool,
int contextIndex)
public void setObservationWriter(ObservationWriter obsWriter)
StatisticAdaptorsetObservationWriter in interface StatisticAdaptorpublic final int[] pairCovariates()
StatisticAdaptorpairCovariates in interface StatisticAdaptorpublic void reset()
StatisticAdaptorreset in interface StatisticAdaptorpublic boolean ignorePair()
StatisticAdaptorignorePair in interface StatisticAdaptorCopyright © 2017 Campagne Laboratory. All rights reserved.