public class PoissonUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static double[] |
confidenceInterval(int mean,
double confidence)
Calculates a confidence interval for a poisson distribution.
|
static double[] |
confidenceInterval95(int mean)
See http://www.math.mcmaster.ca/peter/s743/poissonalpha.html.
|
static double[] |
hackRatioConfidenceInterval95(int m1,
int m2) |
static boolean |
isSignificantlyDifferent(double i,
double j,
double significance) |
static boolean |
isSignificantlyDifferent(double x1,
double y1,
double x2,
double y2,
double significance) |
static double[] |
ratioConfidenceInterval95(int mean1,
int mean2)
Calculates the 95% confidence interval for the ratio of the two means.
|
static double |
testSignificance(double x1,
double x2)
Retruns d for a test of significance between two Poisson counts in samples of equal counts.
|
static double |
testSignificance(double x1,
double y1,
double x2,
double y2)
Retruns d for a test of significance between two Poisson counts where the sample sizes are unequal.
|
public static boolean isSignificantlyDifferent(double i,
double j,
double significance)
public static boolean isSignificantlyDifferent(double x1,
double y1,
double x2,
double y2,
double significance)
public static double testSignificance(double x1,
double x2)
x1 - mean of sample 1x2 - mean of sample 2public static double testSignificance(double x1,
double y1,
double x2,
double y2)
x1 - mean of sample 1y1 - size of sample 1x2 - mean of sample 2y2 - size of sample 2public static double[] ratioConfidenceInterval95(int mean1,
int mean2)
mean1 - mean 1mean2 - mean 2public static double[] hackRatioConfidenceInterval95(int m1,
int m2)
public static double[] confidenceInterval95(int mean)
public static double[] confidenceInterval(int mean,
double confidence)
mean - the meanconfidence - the confidence valid input is from 0 to 1Copyright © 2016. All Rights Reserved.