docs: public static MutableDoubleTuple rescaleElements(
          DoubleTuple t, double oldMin, double oldMax,
          double newMin, double newMax, MutableDoubleTuple result)
      {
          double invDelta = 1.0 / (oldMax - oldMin);
          double newRange = newMax - newMin;
          double scaling = invDelta * newRange;
          return DoubleTupleFunctions.apply(
              t, (a)->(newMin + (a - oldMin) * scaling), result);
      }