docs: public static double variance(DoubleTuple t, double mean)
      {
          int d = t.getSize();
          double variance = 0;
          for (int i=0; i<d; i++)
          {
              double difference = t.get(i) - mean;
              variance += difference * difference;
          }
          return variance / (d - 1);
      }