Package org.snpeff.stats
Class IntStats
java.lang.Object
org.snpeff.stats.IntStats
- All Implemented Interfaces:
Serializable
A simple class that does some basic statistics on integer numbers
- Author:
- pcingola
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
int
getCount
(int sample) int
getMax()
int
int
double
getMean()
double
Calculate the medianint
getMin()
int
double
getQuantile
(double quantile) Get value at a given quantiledouble
getStd()
Calculate the standard deviationlong
getSum()
boolean
Do we have any datavoid
sample
(int num) Use 'num' as a samplevoid
setMaxBins
(int maxBins) toString()
Show a histogram as a list of numbersShow a histogram as a list of numberstoStringPlot
(String title, String xAxisLabel, boolean barChart) Create a histogram plot using Google chartsstatic String
Histogram values
-
Constructor Details
-
IntStats
public IntStats()
-
-
Method Details
-
toStringTabTitle
-
getCount
public int getCount() -
getCount
public int getCount(int sample) -
getMax
public int getMax() -
getMaxBins
public int getMaxBins() -
getMaxCount
public int getMaxCount() -
getMean
public double getMean() -
getMedian
public double getMedian()Calculate the median- Returns:
-
getMin
public int getMin() -
getMinCount
public int getMinCount() -
getQuantile
public double getQuantile(double quantile) Get value at a given quantile- Parameters:
quantile
-- Returns:
-
getStd
public double getStd()Calculate the standard deviation- Returns:
-
getSum
public long getSum() -
isValidData
public boolean isValidData()Do we have any data- Returns:
-
sample
public void sample(int num) Use 'num' as a sample- Parameters:
num
-
-
setMaxBins
public void setMaxBins(int maxBins) -
toString
-
toStringCounts
Show a histogram as a list of numbers- Returns:
-
toStringHisto
Show a histogram as a list of numbers- Returns:
-
toStringPlot
Create a histogram plot using Google charts- Returns:
-
toStringTab
-
toStringValues
Histogram values- Returns:
-