Skip to content

Commit cb5dea1

Browse files
chore: refactor all doc files (#96)
* refactor all doc files * Update .github/workflows/validate-docs.yml Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Apply suggestion from @github-actions[bot] Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * process review comments --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 3ec1708 commit cb5dea1

32 files changed

Lines changed: 2386 additions & 4259 deletions
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Documentation Validation
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "doc/**"
7+
- "scripts/validate-docs.py"
8+
9+
jobs:
10+
validate-docs:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
14+
15+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
16+
with:
17+
python-version: "3.12"
18+
19+
- name: Validate documentation structure
20+
run: python scripts/validate-docs.py

‎README.md‎

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,19 @@ This library provides a comprehensive collection of digital signal processing (D
1212

1313
Refer to the documentation and example scripts to quickly integrate and utilize the library's signal processing and control algorithms in your projects.
1414

15-
## Theory and How to use
16-
17-
1. Control Systems
18-
- [PID](doc/controllers/Pid.md)
19-
- [LQR](doc/controllers/Lqr.md)
20-
21-
2. Analysis
22-
- [Fast Fourier Transform](doc/analysis/FastFourierTransform.md)
23-
- [Power Density Spectrum](doc/analysis/PowerDensitySpectrum.md)
24-
- [Discrete Cosine Transform](doc/analysis/DiscreteCosineTransform.md)
25-
26-
3. Filter
27-
- [Windowing](doc/windowing/window.md)
28-
- [Kalman Filter](doc/filters/active/KalmanFilter.md)
29-
30-
4. Estimators and Solvers
31-
- [Linear Regression](doc/estimators/LinearRegression.md)
32-
- [Yule-Walker (for AR and MA models)](doc/estimators/YuleWalker.md)
33-
- [Levinson-Durbin (Ax + B = 0 matrix solver)](doc/solvers/LevinsonDurbin.md)
34-
- [Gaussian Elimination](doc/solvers/GaussianElimination.md)
35-
- [Discrete Algebraic Riccati Equation](doc/solvers/DiscreteAlgebraicRiccatiEquation.md)
36-
37-
5. [Neural Network](doc/neural_network/NeuralNetwork.md)
15+
## Documentation
16+
17+
| Category | Description |
18+
|------------------------------------------------|------------------------------------------------------------|
19+
| [Analysis](doc/analysis/README.md) | FFT, Power Spectral Density, DCT, Root Locus |
20+
| [Controllers](doc/controllers/README.md) | PID, LQR |
21+
| [Estimators](doc/estimators/README.md) | Linear Regression, Yule-Walker |
22+
| [Filters](doc/filters/README.md) | Kalman Filter |
23+
| [Solvers](doc/solvers/README.md) | Gaussian Elimination, Levinson-Durbin, Durand-Kerner, DARE |
24+
| [Windowing](doc/windowing/README.md) | Rectangular, Hamming, Hann, Blackman |
25+
| [Neural Network](doc/neural_network/README.md) | Layers, activations, losses, optimizers, regularization |
26+
27+
Each category page lists its algorithms with a brief description and links to the detailed documentation.
3828

3929
## Simulator
4030

‎doc/TEMPLATE.md‎

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# [Algorithm Name]
2+
3+
## Overview & Motivation
4+
5+
<!--
6+
Why does this algorithm exist? What problem does it solve?
7+
Provide intuition before formulas. Hook the reader with context.
8+
Keep it accessible — a senior engineer unfamiliar with the domain should
9+
understand the "why" after reading this section.
10+
-->
11+
12+
## Mathematical Theory
13+
14+
<!--
15+
Core math: definitions, notation, theorems, derivations.
16+
Break into sub-sections as needed:
17+
### Prerequisites
18+
### Core Definitions
19+
### Derivation
20+
### Proof of Correctness (if applicable)
21+
Use LaTeX ($$..$$) for block equations and ($...$) for inline math.
22+
-->
23+
24+
## Complexity Analysis
25+
26+
<!--
27+
Time and space complexity WITH justification — not just Big-O, but WHY.
28+
Include best, average, and worst cases where applicable.
29+
30+
| Case | Time | Space | Notes |
31+
|---------|------|-------|-------|
32+
| Best | ... | ... | ... |
33+
| Average | ... | ... | ... |
34+
| Worst | ... | ... | ... |
35+
-->
36+
37+
## Step-by-Step Walkthrough
38+
39+
<!--
40+
A worked example with a small, concrete input.
41+
Trace through each step manually. Show intermediate values.
42+
Use tables, diagrams, or numbered steps.
43+
This is the most underrated didactic tool — don't skip it.
44+
-->
45+
46+
## Pitfalls & Edge Cases
47+
48+
<!--
49+
Numerical instability, overflow, degenerate inputs,
50+
assumptions that break. Document:
51+
- What inputs cause problems?
52+
- What precision issues arise?
53+
- What are the implicit assumptions?
54+
-->
55+
56+
## Variants & Generalizations
57+
58+
<!--
59+
Common modifications:
60+
- Iterative vs recursive
61+
- Approximate versions
62+
- Specializations for certain input types
63+
Show the algorithm as a family of ideas, not an isolated technique.
64+
-->
65+
66+
## Applications
67+
68+
<!--
69+
Real-world and theoretical use cases.
70+
Help the reader understand WHEN to reach for this algorithm.
71+
-->
72+
73+
## Connections to Other Algorithms
74+
75+
<!--
76+
How does this relate to other algorithms in the project?
77+
- Reductions (A can be solved using B)
78+
- Similarities and differences
79+
- Tradeoffs vs alternatives
80+
Great for building a mental map of the library.
81+
-->
82+
83+
## References & Further Reading
84+
85+
<!--
86+
Original papers, textbook chapters, online resources.
87+
Use a numbered list or bullet points:
88+
- [Author, "Title", Year](URL)
89+
- Textbook: Chapter X of "Book Title" by Author
90+
-->

0 commit comments

Comments
 (0)