onst v = ((N - 1) * 0.5) * (x + 1);
          const k = Math.floor(v);
          const f = v - k;

          let y;
          if (v < 0) {
            y = c[0];
          } else if (v >= N - 1) {
            y = c[N - 1];
          } else {
            y = (1 - f) * c[k] + f * c[k + 1];
          }

          if (Math.abs(outputData[i] - y) > tolerance) {
            firstMismatchIndex = i;
            actual = outputData[i];
            expected = y;
            break;
          }
        }

        assert