rvl.stat.dist
Class Binomial

java.lang.Object
  |
  +--rvl.stat.dist.Binomial

public class Binomial
extends java.lang.Object

The binomial distribution


Constructor Summary
Binomial()
           
 
Method Summary
static double cdf(int x, int n, double p)
           
static double[] power(double p0, double p1, int n, int tail, double alpha)
           
static int quantile(double alpha, int n, double p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Binomial

public Binomial()
Method Detail

cdf

public static double cdf(int x,
                         int n,
                         double p)

quantile

public static int quantile(double alpha,
                           int n,
                           double p)

power

public static double[] power(double p0,
                             double p1,
                             int n,
                             int tail,
                             double alpha)
Returns:
an array, { power, size } at p = p1 of a test of H0: p = p0 vs. an alternative H1 determined by tail. n is the sample size, andalpha is the significance level.