Class ReSampleInt
- java.lang.Object
-
- org.snpeff.probablility.bootstrap.ReSampleInt
-
- Direct Known Subclasses:
ReSampleMap
,ReSampleMapRank
public class ReSampleInt extends java.lang.Object
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 Constructor Description ReSampleInt(int[] scores, int sampleSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
cdf(int number)
Cummulative distribution for this numberprotected void
clearStats()
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)
java.lang.String
toString()
-
-
-
Method Detail
-
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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-