Class ReSampleInt
- java.lang.Object
-
- org.snpeff.probablility.bootstrap.ReSampleInt
-
- Direct Known Subclasses:
ReSampleMap,ReSampleMapRank
public class ReSampleInt extends java.lang.ObjectRe-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 doublecdf(int number)Cummulative distribution for this numberprotected voidclearStats()Clear previous statisticsprotected intevaluate()Random sample and evaluateintmax()intmin()intquantile(double quantile)Smallest number whose CDF is larger than a given quantile.voidresample(int iterations)Re-sample 'iterations' timesvoidsetVerbose(boolean verbose)java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-