@Test public void testTestMean() { logger.info("testMean"); double dbar = 2.2; int n = 30; double dbarStd = 1.924; boolean is_twoTailed = false; double aLevel = 0.05; boolean expResult = true; boolean result = NormalRelatedSamples.testMean(dbar, n, dbarStd, is_twoTailed, aLevel); assertEquals(expResult, result); }
public static boolean testMean(double dbar, int n, double dbarStd, boolean is_twoTailed, double aLevel) { if(n<=0 || dbarStd<=0) { throw new IllegalArgumentException("All the parameters must be positive."); } double z=(dbar)/(dbarStd/Math.sqrt(n)); boolean rejectH0=checkCriticalValue(z, is_twoTailed, aLevel); return rejectH0; }
NormalRelatedSamples { public static boolean testMean(double dbar, int n, double dbarStd, boolean is_twoTailed, double aLevel) { if(n<=0 || dbarStd<=0) { throw new IllegalArgumentException("All the parameters must be positive."); } double z=(dbar)/(dbarStd/Math.sqrt(n)); boolean rejectH0=checkCriticalValue(z, is_twoTailed, aLevel); return rejectH0; } }
NormalRelatedSamples { public static boolean testMean(double dbar, int n, double dbarStd, boolean is_twoTailed, double aLevel) { if(n<=0 || dbarStd<=0) { throw new IllegalArgumentException("All the parameters must be positive."); } double z=(dbar)/(dbarStd/Math.sqrt(n)); boolean rejectH0=checkCriticalValue(z, is_twoTailed, aLevel); return rejectH0; }  }
NormalRelatedSamples { public static boolean testMean(double dbar, int n, double dbarStd, boolean is_twoTailed, double aLevel) { if(n<=0 || dbarStd<=0) { throw new IllegalArgumentException("All the parameters must be positive."); } double z=(dbar)/(dbarStd/Math.sqrt(n)); boolean rejectH0=checkCriticalValue(z, is_twoTailed, aLevel); return rejectH0; }  static boolean testMean(double dbar, int n, double dbarStd, boolean is_twoTailed, double aLevel); }
NormalRelatedSamples { public static boolean testMean(double dbar, int n, double dbarStd, boolean is_twoTailed, double aLevel) { if(n<=0 || dbarStd<=0) { throw new IllegalArgumentException("All the parameters must be positive."); } double z=(dbar)/(dbarStd/Math.sqrt(n)); boolean rejectH0=checkCriticalValue(z, is_twoTailed, aLevel); return rejectH0; }  static boolean testMean(double dbar, int n, double dbarStd, boolean is_twoTailed, double aLevel);  }