docs: public void add(double value, double weight)
      {
          writeLock.lock();
          try
          {
              average.addDeg(value, weight);
              double fast = average.averageDeg();
              stats.accept(fast);
              check();
          }
          finally
          {
              writeLock.unlock();
          }
      }