public class Histogram extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
Histogram(int numGeneSetSizes,
int minGeneSetSize,
int numRuns,
double max,
double min) |
Modifier and Type | Method and Description |
---|---|
void |
addExactNormalProbabilityComputer(int i,
double mean,
double variance) |
void |
calcNumOfBins() |
double[] |
getBins() |
double |
getBinSize() |
int |
getClassIndex(int geneSetSize,
int minGeneSetSize) |
double |
getHistMax() |
double |
getHistMin() |
double[] |
getHistogram(int geneSetSize) |
int |
getMinGeneSetSize() |
int |
getNumBins() |
int |
getNumHistograms() |
int |
getNumRuns() |
double |
getProbability(int classSize,
int binnum,
boolean upperTail) |
double |
getValue(int geneSetSize,
double rawscore,
boolean upperTail) |
void |
print(Writer s)
Prints the histogram to stdout.
|
void |
setNumRuns(int runs) |
void |
tocdf()
Convert raw histograms to CDFs.
|
String |
toString() |
void |
update(int classSize,
double value)
Update the count for one bin.
|
public Histogram(int numGeneSetSizes, int minGeneSetSize, int numRuns, double max, double min)
numGeneSets
- minGeneSetSize
- numRuns
- max
- min
- public void calcNumOfBins()
public void setNumRuns(int runs)
runs
- intpublic void update(int classSize, double value)
row
- intvalue
- doublepublic void tocdf()
public double getBinSize()
public double getHistMin()
public double getHistMax()
public int getNumBins()
public int getNumHistograms()
public int getNumRuns()
public int getMinGeneSetSize()
public int getClassIndex(int geneSetSize, int minGeneSetSize)
class_size
- intmin_class_size
- intpublic double getValue(int geneSetSize, double rawscore, boolean upperTail)
geneSetSize
- int - NOT the row, that is determined here.rawscore
- doubleupperTail
- public double[] getHistogram(int geneSetSize)
classSize
- public double[] getBins()
public void print(Writer s) throws IOException
IOException
public double getProbability(int classSize, int binnum, boolean upperTail)
upperTail
- row
- intbinnum
- intpublic void addExactNormalProbabilityComputer(int i, double mean, double variance)
i
- mean
- variance
- Copyright © 2002-2013 UBC Centre for High-Throughput Biology. All Rights Reserved.