code: private boolean rule1(double sample) {
          if (!hasMean()) {
              return false;
          }
  
          return Math.abs(sample - mean.getResult()) > threeDeviations;
      }
docs: one point is more than 3 standard deviations from the mean