The rate a noisy edge stops paying for
Assumes: The frequency a sample rate invents · One step, computed twice
The samples a rise time needs read the 10–90 per cent rise of an edge from its samples and found the cost of the cheapest way of doing it. An instrument that draws a straight chord between the two samples either side of each threshold is wrong at each by an amount that goes as the square of the sampling interval, because the chord cuts across the edge’s curvature. For a Gaussian edge that is 5.02 per cent at four samples a rise and 0.818 at ten, at the worst sampling phase. The familiar rule of three to five samples a rise is therefore a five per cent rule, and one per cent needs nine.
Every sample in that essay was exact. Its list of omissions began with noise, and with a guess: noise on a sample moves a crossing by the noise over the slope, the slope at 10 and 90 per cent is the least on the edge, and at a stated signal-to-noise ratio there should be a rate above which the reading stops improving. The guess is right, the rate is lower than the essay suspected, and the more interesting result is what then gives the rate back.
Two errors, one of which does not move
The edge is the earlier essay’s Gaussian, an error function whose 10–90 per cent rise is the unit of time, sampled times a rise at a random phase. Each sample now carries white noise of standard deviation , here 1 per cent of the step: a step 40 dB above the noise on each sample. The reading is what an instrument does by default: scan forwards for the first pair of samples that straddles each threshold, draw a chord between them, and take where it crosses.
The chord’s deterministic error is the earlier essay’s, now taken as an rms over the sampling phase because the phase is random: 3.69 per cent of the rise at four samples a rise, 0.598 at ten, falling as . The noise adds a second error that has no in it at all. Each threshold’s crossing is an interpolation between two samples, and the noise on those two samples moves it by the noise divided by the edge’s slope, weighted by where the threshold falls between them. Averaged over that position, the variance of each crossing is , with the edge’s slope at the threshold in units of the step per rise — 0.45 for a Gaussian edge at either threshold. The two crossings are independent, so the rise reading carries
2.57 per cent of the rise at 1 per cent noise. A faster rate puts the two samples nearer the threshold, which shrinks the chord’s curvature error, but they are still two samples, each with its full noise, and the slope they are divided by is the edge’s, which the rate does not change.
The first figure draws both and their sum. The deterministic error falls through the noise’s at 4.8 samples a rise, and above that the reading is 2.57 per cent whatever the rate. Seeded edges, 1,500 at each of six rates, confirm it: 4.61 per cent at four a rise, 2.71 at ten, 2.52 at twenty, on the closed form.
Where the closed form stops
Above about 45 samples a rise something else happens. The closed form assumes that each threshold is crossed once, which needs the edge to climb more between two samples than the noise moves either of them: , or at 1 per cent noise. At higher rates the noisy samples cross each level several times, and a reading that takes the first crossing is reading the first time the noise happened to push a sample over, not the edge. The seeded edges show the effect: 2.41 per cent at forty a rise, 2.26 at eighty, 2.09 at 160, a slow drift down, because the first crossings of both levels are early by similar amounts and the error partly cancels in the difference. It is not an improvement anyone could rely on — it depends on the reading taking first crossings at both levels — and it stays within a quarter of the floor.
The practical statement is unchanged: past 4.8 a rise at 40 dB the chord reading has reached its floor, and nothing further is gained by raising the rate. A rule of four or five samples a rise, which the earlier essay found to be a five per cent rule on clean samples, turns out to be the rule at 40 dB in a second sense: it is where the sampling stops mattering.
The crossing against the noise
How that crossing moves with the noise follows from the two laws. The chord’s error goes as and the noise’s as , so they are equal at .
The second figure locates the crossing from 20 to 80 dB. It rises as the square root of the signal-to-noise ratio: 4.8 samples a rise at 40 dB, 15.1 at 60, 47.2 at 80. The floor falls in proportion to the noise, 0.257 per cent of the rise at 60 dB. At 20 dB the crossing is below two samples a rise, where no chord reading means anything; the noise rules at every rate. The rule of thumb is therefore a statement about a particular signal-to-noise ratio, and an instrument reading a small edge on a sensitive range, at 30 dB, has no use for more than about three samples a rise, while one reading a large clean edge at 70 dB can use twenty-six.
Slowing the reading to speed it up
The earlier essay’s open question suggested the remedy: a reconstruction filters the noise and a chord does not. A sinc reconstruction at the sample rate does not, in fact, filter anything — it passes everything below half the sample rate, and white noise sampled at that rate is entirely below it. What filters is a reconstruction slower than the samples: a digital low-pass applied to the samples before reading. It averages several samples into each point of the curve, which reduces the noise, and it slows the edge, which lengthens the reading.
For a Gaussian edge the lengthening can be removed exactly. A Gaussian edge through a Gaussian filter is a Gaussian edge whose variance is the sum of the two, so the true rise is from the measured rise and the filter’s own . The instrument’s own rise time uses the same quadrature rule for an instrument’s front end, and here it is used on purpose, for a filter chosen in software.
The third figure sweeps the filter at 40 samples a rise. A narrow filter averages few samples and leaves most of the noise; a wide one leaves little noise but makes the measured edge much slower than the true one, and the quadrature correction then amplifies whatever error is left, by the ratio of measured to true rise. The best filter has a rise 0.577 of the edge’s, and the reading is 0.742 per cent, against 2.57 for the chord. The seeded edges, 400 at each of three filter widths, agree with the closed form: 0.912, 0.717 and 1.04 per cent against 0.89, 0.742 and 1.15.
The best width has a closed form of its own. The filtered noise’s variance goes as one over the filter’s width , and the correction multiplies its standard deviation by the measured rise, which goes as over the edge’s. The product is least at . So the best filter’s rise is the edge’s divided by , at every rate and every noise level. That is a rule an instrument could apply: estimate the rise, filter at 0.58 of it, read, and correct.
No floor
With the filter chosen at each rate, the reading improves without limit.
The fourth figure sets the two readings side by side. The chord reaches its floor of 2.57 per cent near five samples a rise and stays there. The filtered reading falls as : 2.35 per cent at four a rise, 0.742 at forty, 0.235 at four hundred. The reason is that the filter’s width is a fixed fraction of a rise, so at a higher rate it averages more samples, and the noise in an average falls as the square root of the number averaged. The window the square-root law has is the general version of this trade, and the filter here sits inside it: its samples are independent, so it gets the full square root.
So the reconstruction’s benefit does survive the noise, as the earlier essay hoped, but not in the form it had in mind. A reconstruction that is faithful to the samples inherits all their noise. One that is deliberately slower, and whose slowness is then subtracted, turns each extra sample into a reduction of the noise. Above five samples a rise at 40 dB, the rate is worth paying for only if the reading is a filtered one.
One edge, raw and filtered
The last figure shows a single seeded edge at eighty samples a rise, where the difference is visible.
At eighty samples a rise the edge climbs 0.56 per cent of the step between samples near each threshold, about half the noise, and the raw samples cross each threshold three times on this draw. A chord reading has to choose one of those crossings, and the first is as good a rule as any and no better. The filtered curve, slower by the filter’s rise, crosses each threshold once and lies on the Gaussian edge it should equal. Its rise reads 1.15 of the true one, and the quadrature correction takes it back.
One instrument, two edges
A worked case puts numbers on a bench. An eight-bit digitiser whose noise is half a code rms reads a step that fills its screen, 256 codes, with noise 0.195 per cent of the step: 54 dB. Its chord reading has a floor of 0.50 per cent of the rise, reached at about eleven samples a rise, so a 1 ns edge at 10 GS/s is read as well as a chord can read it, and a faster digitiser would add nothing. The same instrument reading an edge a tenth of the screen high has the same noise in codes and ten times as much relative to the step, 1.95 per cent: 34 dB. Its floor is 5.0 per cent and it reaches it at 3.4 samples a rise. At ten samples a rise it is sitting on its floor, with the chord’s own curvature error, 0.6 per cent, irrelevant beside it.
Filtering changes the second case most. At ten samples a rise and 34 dB, the filtered and corrected reading is about 2.9 per cent: not as good as the large edge’s chord, but nearly half the small edge’s floor, from the same samples. The menu setting that matters for a small edge is therefore not the interpolation, which the samples a rise time needs found decisive at low rates on clean edges, but whether the instrument averages before it reads. Six decibels a bit prices the converter’s resolution against its noise; this prices the noise against a timing reading, and the two meet in the same eight bits. And the rate a reading needs, which the rate each reading needs worked out for clean samples, is lower for a noisy one than for a clean one, which is the opposite of what the extra difficulty would suggest.
A rate and a filter, chosen together
The earlier essay’s third open question asked how an instrument’s bandwidth and sample rate should be chosen as a pair, and the result here is part of an answer from the noise side. An instrument whose front end is much faster than the edges it reads — sampling widely and filtering little — sees the full per-sample noise, and its rise readings sit on the chord’s floor. An instrument that digitises fast and then filters to a rise of 0.58 of the edge’s gets the square-root benefit of every sample. The analogue front end cannot play the filter’s part for noise the converter itself adds: that noise arrives after the front end, independently on every sample, and only a filter after the converter averages it. For that noise the filtering belongs in the digital domain, where its width can also be chosen for the edge being read, which a front end fixed at manufacture cannot.
That is subject to the converter’s own noise being white and independent from sample to sample, which a real digitiser’s is only approximately. Correlated noise from sample to sample — a front end’s own bandwidth, or a converter’s dither — reduces what an average of neighbouring samples gains, as the average that is not N times quieter found for a capacitor’s samples.
How the numbers were obtained
The chord’s deterministic error is the earlier essay’s reading on an exact Gaussian edge, its rms taken over 400 sampling phases. The noise’s contribution is , with the slope at either threshold. The filtered reading’s noise is , with for a sampled Gaussian of width , the filtered edge’s slope, and the result multiplied by the ratio of measured to true rise for the correction. Seeded edges draw the sampling phase uniformly and the noise from verify-kit’s generator, read each edge at the first upward crossing of each level, and are compared with the closed forms to seven per cent where each level is crossed once, and to within a quarter of the floor beyond. The best filter is located by golden section and checked against to a part in ten thousand.
What the noisy edge leaves out
Edges that are not Gaussian. The quadrature correction is exact only for a Gaussian edge through a Gaussian filter. A first-order edge through a Gaussian filter is not a first-order edge, and subtracting in quadrature leaves an error that depends on the shape; the delay a chain adds found how quickly a cascade becomes Gaussian, which says how often the correction is nearly right.
Noise that is not white. Flicker noise and drift add a slow component that a filter of a fraction of a rise cannot remove, and which moves both crossings together — it cancels in a rise reading and does not in a delay reading.
An edge that overshoots. A filtered reading of an edge with an overshoot finds its 90 per cent crossing on the overshoot’s flank, and the filter reshapes the overshoot as well as the rise. The corner that says nothing about an edge is where a filter’s overshoot was measured against its corner.
The numbers worth carrying
Read by chord, a Gaussian edge’s rise carries of noise at every sample rate: 2.57 per cent of the rise at 40 dB, reached at 4.8 samples a rise, and the crossing rises as the square root of the signal-to-noise ratio, to 15.1 a rise at 60 dB. Filtered first with a Gaussian of 0.577 of the edge’s rise — the edge’s over — and corrected in quadrature, the reading has no floor: 0.742 per cent at forty samples a rise and 0.235 at four hundred, falling as . More samples are worth buying only for a reading that filters them.
Still open: a filter for an edge of unknown shape, a two-pass reading, and the overshooting front end
A filter chosen without knowing the edge. The best filter is the edge’s rise over , which needs the rise before it is measured. A two-pass reading — a chord reading to estimate the rise, then a filtered one at the width it suggests — is the obvious procedure, and whether the first pass’s 2.57 per cent error degrades the second, or whether the optimum is flat enough not to care, is a direct measurement on this model.
A shape-independent correction. For an edge that is not Gaussian, the filtered rise does not add in quadrature. A correction by deconvolution, or by fitting the filtered edge with the filtered model, would restore the square-root law at a cost in computation; how far a quadrature correction misreads a first-order edge through a 0.58 filter is the number that would say whether it is needed.
The overshooting front end. A front end with a sharp roll-off reduces aliasing, as the frequency a sample rate invents required, and puts an overshoot on every edge. Whether the noise analysis here, which assumed a monotonic edge, still finds a floor for the chord and none for the filtered reading once the 90 per cent level is crossed on an overshoot, is what remains of the earlier essay’s second question.
Part 6 on sample rate
One argument about Sample rate, and one of 7 essays on it so far, each part numbered by how much of the idea it assumes. What sits either side of it:
The objects named here
The third axis, after the field and the idea: the things themselves, and every essay that touches each one.
Convergence orderDesign tradeoffModel rangeReconstructionRise timeSample rateSeeded generator
- The peak that is a corner convergence order, model range, reconstruction, sample rate
- An exact answer to a different question convergence order, reconstruction, sample rate
- One step of dither per moment design tradeoff, model range, seeded generator
- The band that moves the crossing convergence order, design tradeoff, model range
- The cure that needs one current design tradeoff, model range, seeded generator
- The delay that is not one number design tradeoff, model range, rise time