docs: synchronized double getZScore(double value) {
          // Generate a random value between -0.5 and 0.5 if we have no
          // historical data.  This will result in a score that is well
          // within 1 standard deviation from the specified value and
          // avoid divide-by-zero issues.
          if (ewmaVariance == Double.NEGATIVE_INFINITY) {
              return Math.random() - 0.5;
          }
  
          double score = (value - ewma) / ewmaStddev;
  
          // Limit the z-score to the range where we've calculated the
          // standard normal distribution probabilities
          if (score < -3.4) {
              return -3.4;
          } else if (score > 3.4) {
              return 3.4;
          }
  
          return score;
      }