/** * Access the domain value lower bound, based on <code>p</code>, used to * bracket a PDF root. * * @param p the desired probability for the critical value * @return domain value lower bound, i.e. P(X < <i>lower bound</i>) < * <code>p</code> */ @Override protected int getDomainLowerBound(double p) { return getLowerDomain(populationSize, numberOfSuccesses, sampleSize); }
/** * Access the domain value lower bound, based on <code>p</code>, used to * bracket a PDF root. * * @param p the desired probability for the critical value * @return domain value lower bound, i.e. P(X < <i>lower bound</i>) < * <code>p</code> */ @Override protected int getDomainLowerBound(double p) { return getLowerDomain(populationSize, numberOfSuccesses, sampleSize); }
/** * Return the domain for the given hypergeometric distribution parameters. * * @param n the population size. * @param m number of successes in the population. * @param k the sample size. * @return a two element array containing the lower and upper bounds of the * hypergeometric distribution. */ private int[] getDomain(int n, int m, int k) { return new int[] { getLowerDomain(n, m, k), getUpperDomain(m, k) }; }
/** * Return the domain for the given hypergeometric distribution parameters. * * @param n the population size. * @param m number of successes in the population. * @param k the sample size. * @return a two element array containing the lower and upper bounds of the * hypergeometric distribution. */ private int[] getDomain(int n, int m, int k) { return new int[] { getLowerDomain(n, m, k), getUpperDomain(m, k) }; }
/** * Return the domain for the given hypergeometric distribution parameters. * @param n the population size. * @param m number of successes in the population. * @param k the sample size. * @return a two element array containing the lower and upper bounds of the * hypergeometric distribution. */ private int[] getDomain(int n, int m, int k){ return new int[]{ getLowerDomain(n, m, k), getUpperDomain(m, k) }; }
/** * Access the domain value lower bound, based on <code>p</code>, used to * bracket a PDF root. * * @param p the desired probability for the critical value * @return domain value lower bound, i.e. * P(X < <i>lower bound</i>) < <code>p</code> */ protected int getDomainLowerBound(double p) { return getLowerDomain(getPopulationSize(), getNumberOfSuccesses(), getSampleSize()); }