Skip to content

Commit 1888f3c

Browse files
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 5a3ebff commit 1888f3c

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

doc/analysis/HilbertTransform.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ Its one-sided spectrum satisfies $Z(f) = 0$ for $f < 0$, $Z(0) = X(0)$, and $Z(f
2727
### Instantaneous Attributes
2828

2929
| Quantity | Formula |
30-
|----------|---------|
31-
| Amplitude (envelope) | $A(t) = |z(t)| = \sqrt{x^2 + \mathcal{H}^2\{x\}}$ |
30+
| ---------- | --------- |
31+
| Amplitude (envelope) | $A(t) = | z(t) | = \sqrt{x^2 + \mathcal{H}^2\{x\}}$ |
3232
| Phase | $\phi(t) = \arg z(t) = \operatorname{atan2}(\mathcal{H}\{x\}, x)$ |
3333
| Frequency | $f_i(t) = \frac{1}{2\pi}\frac{d\phi}{dt}$ (phase unwrapped before differencing) |
3434

@@ -50,11 +50,11 @@ $$h[k] = \frac{2}{\pi k} w[k], \quad k \text{ odd}; \quad h[k] = 0, \quad k \tex
5050

5151
## Complexity Analysis
5252

53-
| Method | Time per call | Space | Notes |
54-
|--------|--------------|-------|-------|
55-
| FFT (block) | $O(N \log N)$ | $2N$ complex words | Exact, latency $N$ |
56-
| FIR (streaming) | $O(P)$ per sample | $P$ words state | Approx., latency $(P-1)/2$ |
57-
| Feature extraction | $O(1)$ | None | atan2, sqrt, subtract |
53+
| Method | Time per call | Space | Notes |
54+
|--------------------|-------------------|--------------------|----------------------------|
55+
| FFT (block) | $O(N \log N)$ | $2N$ complex words | Exact, latency $N$ |
56+
| FIR (streaming) | $O(P)$ per sample | $P$ words state | Approx., latency $(P-1)/2$ |
57+
| Feature extraction | $O(1)$ | None | atan2, sqrt, subtract |
5858

5959
$P$ = number of FIR taps.
6060

doc/analysis/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Signal analysis algorithms for frequency-domain decomposition and spectral estim
1313
| [Signal Detectors](SignalDetectors.md) | Peak hold, zero-crossing counter, and RMS envelope detectors for real-time signal monitoring |
1414
| [Decibels](Decibels.md) | `ToDecibels` / `FromDecibels` conversion helpers with zero-floor guard, plus attenuation and ripple utilities |
1515
| [Goertzel Algorithm](GoertzelAlgorithm.md) | Single-bin DFT via a second-order recurrence for O(N) tone detection with O(1) memory |
16-
| [Hilbert Transform](HilbertTransform.md) | Analytic signal and instantaneous amplitude/phase/frequency via FFT one-sided spectrum or FIR approximation |
16+
| [Hilbert Transform](HilbertTransform.md) | Analytic signal and instantaneous amplitude/phase/frequency via FFT one-sided spectrum or FIR approximation |
1717

1818
## Sub-domains
1919

0 commit comments

Comments
 (0)