
Public Member Functions | |
| EmpiricalDistribution (int numberOfBins, double min, double max) | |
| EmpiricalDistribution (int numberOfBins, double min, double max, boolean includeOutOfRange) | |
| EmpiricalDistribution (Collection< Double > vals, int numberOfBins) | |
| double | getMax () |
| double | getMin () |
| int | getBinNumber () |
| EmpiricalDistribution (Collection< Double > vals) | |
| EmpiricalDistribution (Collection< Double > vals, int numberOfBins, boolean absVal) | |
| EmpiricalDistribution (double[] vals, int numberOfBins) | |
| EmpiricalDistribution (List< Double > vals, int numberOfBins) | |
| EmpiricalDistribution (double[] vals, int numberOfBins, double min, double max) | |
| double | testGoodnessOfFit (EmpiricalDistribution other) throws IllegalArgumentException |
| double | chiSquareDistance (EmpiricalDistribution other) throws IllegalArgumentException, IOException |
| double | KLDivergence (EmpiricalDistribution other) throws IllegalArgumentException |
| double | KLDivergenceSym (EmpiricalDistribution other) throws IllegalArgumentException, IOException |
| EmpiricalDistribution (InputStream is) throws IOException | |
| EmpiricalDistribution (File source) throws IOException | |
| EmpiricalDistribution (Matrix permutations, int numberOfBins) | |
| void | add (double observation) |
| double | leftIntersect (EmpiricalDistribution other) |
| int | getBin (double value) |
| double | getBinMidPoint (int bin) |
| double | getBinStart (int bin) |
| double | getBinEnd (int bin) |
| double | rightIntersect (EmpiricalDistribution other) |
| double | getFirstIntersectLeftFromMedian (EmpiricalDistribution other) |
| double | getFirstIntersectRightFromMedian (EmpiricalDistribution other) |
| int | getTotalObservations () |
| void | ensureNoEmptyBins () |
| void | addPsuedocounts (double psuedocount) |
| double | getDensity (int bin) |
| double | getHistogram (int bin) |
| EmpiricalDistribution | getDistributionOfHistogramValues () |
| double | getRawDensity (int bin) |
| double | getPercentOfValuesBetween (double leftBound, double rightBound) |
| double | getPercentOfValuesLargerThan (double value) |
| double | getMean () |
| double | getStandardDeviation () |
| double | getMedianOfAllDataValues () |
| double | getQuantileOfBins (double probability) |
| double | getCumulativeProbability (double value) |
| int | getNumberOfValuesLargerThan (double value) |
| double | getKSStatistic (List< Double > observed) |
| double | getKSStatistic (double[] observed) |
| void | write (BufferedWriter bw) throws IOException |
| void | write (String save) throws IOException |
| void | addDistribution (EmpiricalDistribution other) |
| Collection< Double > | getAllDataValues () |
| void | addAll (Collection< Double > values) |
| void | addAll (double[] values) |
| void | addAll (Matrix vals) |
| Map< Double, Double > | getCountByBinStart () |
| double | getProbability (double size) |
| double | getPValue (double score) |
| double | getPValue (double score, double min) |
| int | numBins () |
| double | getPValue2 (double score) |
| double | getZscore (double value) |
Static Public Member Functions | |
| static void | main (String[] args) throws Exception |
| static EmpiricalDistribution | getEmpiricalMaxStatisticDistribution (Collection< EmpiricalDistribution > distributions) |
Static Public Attributes | |
| static final String | USAGE |
| broad.core.math.EmpiricalDistribution.EmpiricalDistribution | ( | int | numberOfBins, |
| double | min, | ||
| double | max | ||
| ) |

| broad.core.math.EmpiricalDistribution.EmpiricalDistribution | ( | int | numberOfBins, |
| double | min, | ||
| double | max, | ||
| boolean | includeOutOfRange | ||
| ) |
| broad.core.math.EmpiricalDistribution.EmpiricalDistribution | ( | Collection< Double > | vals, |
| int | numberOfBins | ||
| ) |

| broad.core.math.EmpiricalDistribution.EmpiricalDistribution | ( | Collection< Double > | vals | ) |
| broad.core.math.EmpiricalDistribution.EmpiricalDistribution | ( | Collection< Double > | vals, |
| int | numberOfBins, | ||
| boolean | absVal | ||
| ) |

| broad.core.math.EmpiricalDistribution.EmpiricalDistribution | ( | double[] | vals, |
| int | numberOfBins | ||
| ) |

| broad.core.math.EmpiricalDistribution.EmpiricalDistribution | ( | List< Double > | vals, |
| int | numberOfBins | ||
| ) |

| broad.core.math.EmpiricalDistribution.EmpiricalDistribution | ( | double[] | vals, |
| int | numberOfBins, | ||
| double | min, | ||
| double | max | ||
| ) |

| broad.core.math.EmpiricalDistribution.EmpiricalDistribution | ( | InputStream | is | ) | throws IOException |
| broad.core.math.EmpiricalDistribution.EmpiricalDistribution | ( | File | source | ) | throws IOException |
| broad.core.math.EmpiricalDistribution.EmpiricalDistribution | ( | Matrix | permutations, |
| int | numberOfBins | ||
| ) |

| void broad.core.math.EmpiricalDistribution.add | ( | double | observation | ) |

| void broad.core.math.EmpiricalDistribution.addAll | ( | Collection< Double > | values | ) |


| void broad.core.math.EmpiricalDistribution.addAll | ( | double[] | values | ) |

| void broad.core.math.EmpiricalDistribution.addAll | ( | Matrix | vals | ) |

| void broad.core.math.EmpiricalDistribution.addDistribution | ( | EmpiricalDistribution | other | ) |
| void broad.core.math.EmpiricalDistribution.addPsuedocounts | ( | double | psuedocount | ) |
| double broad.core.math.EmpiricalDistribution.chiSquareDistance | ( | EmpiricalDistribution | other | ) | throws IllegalArgumentException, IOException |
This function will calculate the chi square distance between this and other empirical distribution. A psuedocount of 1 is added to both distributions before calculating the statistic otherwise zeros will return a MathException
| other |
| IllegalArgumentException | |
| MathException |
| void broad.core.math.EmpiricalDistribution.ensureNoEmptyBins | ( | ) |
| Collection<Double> broad.core.math.EmpiricalDistribution.getAllDataValues | ( | ) |
Get list of all the data values that contributed to the bins

| int broad.core.math.EmpiricalDistribution.getBin | ( | double | value | ) |
| double broad.core.math.EmpiricalDistribution.getBinEnd | ( | int | bin | ) |
| double broad.core.math.EmpiricalDistribution.getBinMidPoint | ( | int | bin | ) |
| int broad.core.math.EmpiricalDistribution.getBinNumber | ( | ) |
| double broad.core.math.EmpiricalDistribution.getBinStart | ( | int | bin | ) |
| Map<Double, Double> broad.core.math.EmpiricalDistribution.getCountByBinStart | ( | ) |
Get the distribution as a map
| double broad.core.math.EmpiricalDistribution.getCumulativeProbability | ( | double | value | ) |


| double broad.core.math.EmpiricalDistribution.getDensity | ( | int | bin | ) |


| EmpiricalDistribution broad.core.math.EmpiricalDistribution.getDistributionOfHistogramValues | ( | ) |
Get distribution of number of observations per bin

|
static |

| double broad.core.math.EmpiricalDistribution.getFirstIntersectLeftFromMedian | ( | EmpiricalDistribution | other | ) |

| double broad.core.math.EmpiricalDistribution.getFirstIntersectRightFromMedian | ( | EmpiricalDistribution | other | ) |

| double broad.core.math.EmpiricalDistribution.getHistogram | ( | int | bin | ) |
Get the total number of observations in the bin
| bin | Bin number |

| double broad.core.math.EmpiricalDistribution.getKSStatistic | ( | List< Double > | observed | ) |
Compared a list of observed with this empirical distribution using the Kolmogorov Smirnov Test. Will be approximate since we don't store every value in this distribution.
Get signifiance with: 1 - new umontreal.iro.lecuyer.probdist.KolmogorovSmirnovDist().cdf(D, observed.size());
| observed | List of observations |
NOTE: UNTESTED


| double broad.core.math.EmpiricalDistribution.getKSStatistic | ( | double[] | observed | ) |

| double broad.core.math.EmpiricalDistribution.getMax | ( | ) |
| double broad.core.math.EmpiricalDistribution.getMean | ( | ) |


| double broad.core.math.EmpiricalDistribution.getMedianOfAllDataValues | ( | ) |
Get median of all data values including out of range
| double broad.core.math.EmpiricalDistribution.getMin | ( | ) |
| int broad.core.math.EmpiricalDistribution.getNumberOfValuesLargerThan | ( | double | value | ) |
| double broad.core.math.EmpiricalDistribution.getPercentOfValuesBetween | ( | double | leftBound, |
| double | rightBound | ||
| ) |

| double broad.core.math.EmpiricalDistribution.getPercentOfValuesLargerThan | ( | double | value | ) |

| double broad.core.math.EmpiricalDistribution.getProbability | ( | double | size | ) |

| double broad.core.math.EmpiricalDistribution.getPValue | ( | double | score | ) |
| double broad.core.math.EmpiricalDistribution.getPValue | ( | double | score, |
| double | min | ||
| ) |
| double broad.core.math.EmpiricalDistribution.getPValue2 | ( | double | score | ) |
P(x>Score)
| score |

| double broad.core.math.EmpiricalDistribution.getQuantileOfBins | ( | double | probability | ) |

| double broad.core.math.EmpiricalDistribution.getRawDensity | ( | int | bin | ) |


| double broad.core.math.EmpiricalDistribution.getStandardDeviation | ( | ) |

| int broad.core.math.EmpiricalDistribution.getTotalObservations | ( | ) |

| double broad.core.math.EmpiricalDistribution.getZscore | ( | double | value | ) |
| double broad.core.math.EmpiricalDistribution.KLDivergence | ( | EmpiricalDistribution | other | ) | throws IllegalArgumentException |
This function will calculate the KULLBACK-LIEBLER DIVERGENCE between this and other empirical distribution. MAKE SURE THAT GIBB'S INEQUALITY HOLDS. FOR THIS, ADD 1.0 AS PSUEDOCOUNTS (USE addPsuedocounts() FUNCTION)
| other |
| IllegalArgumentException | |
| MathException |

| double broad.core.math.EmpiricalDistribution.KLDivergenceSym | ( | EmpiricalDistribution | other | ) | throws IllegalArgumentException, IOException |
| double broad.core.math.EmpiricalDistribution.leftIntersect | ( | EmpiricalDistribution | other | ) |

|
static |

| int broad.core.math.EmpiricalDistribution.numBins | ( | ) |
Get the number of bins

| double broad.core.math.EmpiricalDistribution.rightIntersect | ( | EmpiricalDistribution | other | ) |

| double broad.core.math.EmpiricalDistribution.testGoodnessOfFit | ( | EmpiricalDistribution | other | ) | throws IllegalArgumentException |
This function will calculate the significance of the chi square statistic between this and other empirical distribution.
| other |
| IllegalArgumentException | |
| MathException |
| void broad.core.math.EmpiricalDistribution.write | ( | BufferedWriter | bw | ) | throws IOException |


| void broad.core.math.EmpiricalDistribution.write | ( | String | save | ) | throws IOException |

|
static |
1.8.7