### Question:
SimpleRandomSampling { public static double pbarStd(double pbar, int sampleN) { return Math.sqrt(pbarVariance(pbar, sampleN, Integer.MAX_VALUE)); }  static FlatDataCollection weightedSampling(AssociativeArray weightedTable, int n, boolean withReplacement); static FlatDataCollection randomSampling(FlatDataList idList, int n, boolean withReplacement); static double mean(FlatDataCollection flatDataCollection); static double variance(FlatDataCollection flatDataCollection); static double std(FlatDataCollection flatDataCollection); static double xbarVariance(double variance, int sampleN); static double xbarVariance(double variance, int sampleN, int populationN); static double xbarStd(double std, int sampleN); static double xbarStd(double std, int sampleN, int populationN); static double pbarVariance(double pbar, int sampleN); static double pbarVariance(double pbar, int sampleN, int populationN); static double pbarStd(double pbar, int sampleN); static double pbarStd(double pbar, int sampleN, int populationN); static int minimumSampleSizeForMaximumXbarStd(double maximumXbarStd, double populationStd); static int minimumSampleSizeForMaximumXbarStd(double maximumXbarStd, double populationStd, int populationN); static int minimumSampleSizeForGivenDandMaximumRisk(double d, double aLevel, double populationStd); static int minimumSampleSizeForGivenDandMaximumRisk(double d, double aLevel, double populationStd, int populationN);  }### Answer:
@Test public void testPbarStd_3args() { logger.info("pbarStd"); double pbar = 0.19; int sampleN = 200; int populationN = 3042; double expResult = 0.026879748668207; double result = SimpleRandomSampling.pbarStd(pbar, sampleN, populationN); assertEquals(expResult, result, Constants.DOUBLE_ACCURACY_HIGH); }