[Autoloop: build-tsb-pandas-typescript-migration] Iteration 387: Add signal processing and digital filters#363
Draft
github-actions[bot] wants to merge 2 commits into
Draft
Conversation
…signal processing (FFT/STFT/Welch) and digital filters (FIR/Butterworth) - src/stats/signal.ts: Cooley-Tukey radix-2 DIT FFT/IFFT/RFFT/IRFFT, fftFreq/rfftFreq, fftshift/ifftshift, 8 window functions (getWindow), STFT/ISTFT (overlap-add), Welch PSD (mean/median), periodogram. Mirrors numpy.fft + scipy.signal spectral utilities. - src/stats/filters.ts: FIR design via windowed-sinc (firwin), Butterworth IIR design (butter, SOS form), frequency response (freqz, sosfreqz), filter application (lfilter, filtfilt, sosfilt, sosfiltfilt). Mirrors scipy.signal filter utilities. - tests/stats/signal.test.ts: 50+ tests (unit + property-based) - tests/stats/filters.test.ts: 50+ tests (unit + property-based) - playground/signal.html, playground/filters.html: interactive tutorials - playground/index.html, src/stats/index.ts, src/index.ts: updated exports Metric: 183 → 185 (+2) Run: https://github.com/githubnext/tsb/actions/runs/28396990118 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ORC file format I/O (readOrc / toOrc) Implement Apache ORC (Optimized Row Columnar) file format reader and writer. - src/io/orc.ts: Full ORC implementation (~1200 lines) - Protobuf decoder/encoder (LSB-first varints, wire types 0/1/2/5) - Hadoop VInt reader/writer (MSB-first big-endian, Hadoop-style encoding) - RLE byte v1 encoder/decoder (PRESENT/BOOLEAN streams) - RLE integer v1 encoder/decoder (INT/LONG columns) - Column encoders: BOOLEAN, INT/LONG, FLOAT/DOUBLE, STRING - Full null support via ORC PRESENT stream - readOrc(data, options) and toOrc(df, options) exported functions - tests/io/orc.test.ts: Comprehensive test suite with fast-check property tests - playground/orc.html: Interactive tutorial page Metric: 185 → 186 Run: https://github.com/githubnext/tsb/actions/runs/28429568433 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds two new signal processing modules to
src/stats/:signal.ts— FFT, STFT, Welch PSDfftFreq,rfftFreq,fftshift,ifftshiftgetWindowfactoryfilters.ts— FIR, Butterworth IIRfirwin: FIR filter design via windowed-sinc (lowpass/highpass/bandpass/bandstop)butter: Butterworth IIR design in SOS form (lowpass/highpass/bandpass/bandstop)freqz(single-section),sosfreqz(SOS cascade)lfilter(causal),filtfilt(zero-phase, double-pass),sosfilt,sosfiltfiltFiles Changed
src/stats/signal.ts— new (~600 lines)src/stats/filters.ts— new (~450 lines)tests/stats/signal.test.ts— new (~300 lines, unit + property-based)tests/stats/filters.test.ts— new (~280 lines, unit + property-based)playground/signal.html— new interactive tutorialplayground/filters.html— new interactive tutorialsrc/stats/index.ts,src/index.ts— updated exportsplayground/index.html— feature cards addedMetric
183 → 185 (+2 TypeScript source files with exports)
Generated by Autoloop — Iteration 387
Run: https://github.com/githubnext/tsb/actions/runs/28396990118