 let errorThresholds = [3.7671e-5, 3.0071e-5, 2.6241e-5];

              // Check the difference signal on each channel
              for (channel = 0; channel < result.numberOfChannels; ++channel) {
                // Find the max amplitude of the result, which should be near
                // zero.
                let data = result.getChannelData(channel);
                let maxError =
                    data.reduce(function(reducedValue, currentValue) {
                      return Math.max(reducedVal