docs: static double quantile(double index, double previousIndex, double nextIndex, double previousMean, double nextMean) {
          final double delta = nextIndex - previousIndex;
          final double previousWeight = (nextIndex - index) / delta;
          final double nextWeight = (index - previousIndex) / delta;
          return previousMean * previousWeight + nextMean * nextWeight;
      }