public class EstimatedDistribution extends Object implements Serializable
| Constructor and Description |
|---|
EstimatedDistribution(int numberOfContexts) |
EstimatedDistribution(int numberOfContexts,
StatisticAdaptor statAdaptor) |
| Modifier and Type | Method and Description |
|---|---|
BinningStrategy |
getBinningStrategy() |
long |
getCumulativeCount(double statistic,
int... covariates)
Get the cumulative count for observations with delta between zero and the argument value (inclusive).
|
long |
getCumulativeCount(int scaledStatistic,
int... covariates)
Get the cumulative count for observations with delta between zero and the argument value.
|
FenwickTree |
getDensity(int... covariates) |
double |
getEmpiricalFdr(EstimatedDistribution testDistribution,
double statistic,
int... covariates)
Get an empirical estimate of the false discovery rate at the statistic reached by an observation
|
it.unimi.dsi.fastutil.objects.ObjectArrayList<org.campagnelab.goby.algorithmic.algorithm.dmr.EstimatedDistribution.Observation> |
getObservations() |
double |
getP(double statistic,
int... covariates)
Get the empirical estimate of the probability that the statistic could have been generated by the distribution
represented in the estimator.
|
double |
getP(int scaledStatistic,
int... covariates)
Get the empirical estimate of the probability that the statistic could have been generated by the distribution
represented in the estimator.
|
double |
getScalingFactor() |
StatisticAdaptor |
getStatAdaptor() |
static EstimatedDistribution |
load(String filename) |
static void |
main(String[] args) |
void |
observe(int contextIndex,
int... a)
ca=5 cma=10 diffA=10-5=5
cb=6 cmb=13 diffB=13-6=7
diffA,B= 5-7=2
ca=10 cma=5 diffA=10-5=5
cb=6 cmb=13 diffB=6-13=-7
diffA,B= 5- -7=13
|
void |
observeWithCovariate(int contextIndex,
int sumTotal,
int... a) |
int |
scale(double statistic)
unscale a scaled statistic.
|
void |
setBinningStrategy(BinningStrategy theBinningStrategy) |
static void |
store(Serializable estimator,
String filename) |
double |
unscale(int scaledStatistic)
unscale a scaled statistic.
|
public EstimatedDistribution(int numberOfContexts)
public EstimatedDistribution(int numberOfContexts,
StatisticAdaptor statAdaptor)
public double getScalingFactor()
public BinningStrategy getBinningStrategy()
public final void observe(int contextIndex,
int... a)
contextIndex - a - public final void observeWithCovariate(int contextIndex,
int sumTotal,
int... a)
public FenwickTree getDensity(int... covariates)
public static void store(Serializable estimator, String filename) throws IOException
IOExceptionpublic static EstimatedDistribution load(String filename) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic long getCumulativeCount(int scaledStatistic,
int... covariates)
scaledStatistic - upper-bound on the scaledStatistic for counting observations.covariates - covariates of the scaled statistic.public long getCumulativeCount(double statistic,
int... covariates)
statistic - upper-bound on the statistic for counting observations.covariates - covariates of the scaled statistic.public double getP(double statistic,
int... covariates)
statistic - value of statistic under test.covariates - covariates of the statistic.public double getEmpiricalFdr(EstimatedDistribution testDistribution, double statistic, int... covariates)
testDistribution - The distribution of the between group comparisons for the test being performed.statistic - value of statistic under test.covariates - covariates of the statistic.public double getP(int scaledStatistic,
int... covariates)
scaledStatistic - covariates - covariates of the statistic.public static void main(String[] args) throws IOException
IOExceptionpublic double unscale(int scaledStatistic)
scaledStatistic - Value of the statistic scaled with SCALING_FACTOR.public int scale(double statistic)
statistic - Value of the statistic to scale.public StatisticAdaptor getStatAdaptor()
public void setBinningStrategy(BinningStrategy theBinningStrategy)
public it.unimi.dsi.fastutil.objects.ObjectArrayList<org.campagnelab.goby.algorithmic.algorithm.dmr.EstimatedDistribution.Observation> getObservations()
Copyright © 2017 Campagne Laboratory. All rights reserved.