docs: public int getMinValueIndex(double[] array) {
  
          int index = 0;
          double min = Integer.MAX_VALUE;
  
          for (int i = 0; i < array.length; i++) {
              if (array[i] < min) {
                  min = array[i];
                  index = i;
              }
          }
  
          return index;
      }