docs: public static MutableDoubleTuple replaceNaN(
          DoubleTuple t, double newValue, MutableDoubleTuple result)
      {
          return DoubleTupleFunctions.apply(
              t, d -> Double.isNaN(d) ? newValue : d, result);
      }