code: private static boolean checkCriticalValue(double score, boolean is_twoTailed, double aLevel) {
          double probability = ContinuousDistributions.gaussCdf(score);
          
          boolean rejectH0=false;
          
          double a=aLevel;
          if(is_twoTailed) { //if to tailed test then split the statistical significance in half
              a=aLevel/2.0;
          }
          if(probability<=a || probability>=(1.0-a)) {
              rejectH0=true;
          }
          
          return rejectH0;
      }
docs: Checks the Critical Value to determine if the Hypothesis should be rejected
  
  @param score
  @param is_twoTailed
  @param aLevel
  @return