Class ReSampleInt
java.lang.Object
org.snpeff.probablility.bootstrap.ReSampleInt
- Direct Known Subclasses:
ReSampleMap
,ReSampleMapRank
Re-sample statistic
Statistic is a sum of a set of integer numbers (e.g. ranks).
The statistic is sampled and PDF/CDF can be calculated from empirical random re-sampling.
- Author:
- pablocingolani
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
cdf
(int number) Cummulative distribution for this numberprotected void
Clear previous statisticsprotected int
evaluate()
Random sample and evaluateint
max()
int
min()
int
quantile
(double quantile) Smallest number whose CDF is larger than a given quantile.void
resample
(int iterations) Re-sample 'iterations' timesvoid
setVerbose
(boolean verbose) toString()
-
Constructor Details
-
ReSampleInt
public ReSampleInt(int[] scores, int sampleSize)
-
-
Method Details
-
cdf
public double cdf(int number) Cummulative distribution for this number- Parameters:
number
-- Returns:
-
clearStats
protected void clearStats()Clear previous statistics -
evaluate
protected int evaluate()Random sample and evaluate -
max
public int max() -
min
public int min() -
quantile
public int quantile(double quantile) Smallest number whose CDF is larger than a given quantile. I.e. x such that P[ X <= x ] >= Quantile- Parameters:
quantile
-- Returns:
-
resample
public void resample(int iterations) Re-sample 'iterations' times- Parameters:
iterations
-
-
setVerbose
public void setVerbose(boolean verbose) -
toString
-