Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/validate-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Documentation Validation

on:
pull_request:
paths:
- "doc/**"
- "scripts/validate-docs.py"

jobs:
validate-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: "3.12"

- name: Validate documentation structure
run: python scripts/validate-docs.py
36 changes: 13 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,19 @@ This library provides a comprehensive collection of digital signal processing (D

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

## Theory and How to use

1. Control Systems
- [PID](doc/controllers/Pid.md)
- [LQR](doc/controllers/Lqr.md)

2. Analysis
- [Fast Fourier Transform](doc/analysis/FastFourierTransform.md)
- [Power Density Spectrum](doc/analysis/PowerDensitySpectrum.md)
- [Discrete Cosine Transform](doc/analysis/DiscreteCosineTransform.md)

3. Filter
- [Windowing](doc/windowing/window.md)
- [Kalman Filter](doc/filters/active/KalmanFilter.md)

4. Estimators and Solvers
- [Linear Regression](doc/estimators/LinearRegression.md)
- [Yule-Walker (for AR and MA models)](doc/estimators/YuleWalker.md)
- [Levinson-Durbin (Ax + B = 0 matrix solver)](doc/solvers/LevinsonDurbin.md)
- [Gaussian Elimination](doc/solvers/GaussianElimination.md)
- [Discrete Algebraic Riccati Equation](doc/solvers/DiscreteAlgebraicRiccatiEquation.md)

5. [Neural Network](doc/neural_network/NeuralNetwork.md)
## Documentation

| Category | Description |
|------------------------------------------------|------------------------------------------------------------|
| [Analysis](doc/analysis/README.md) | FFT, Power Spectral Density, DCT, Root Locus |
| [Controllers](doc/controllers/README.md) | PID, LQR |
| [Estimators](doc/estimators/README.md) | Linear Regression, Yule-Walker |
| [Filters](doc/filters/README.md) | Kalman Filter |
| [Solvers](doc/solvers/README.md) | Gaussian Elimination, Levinson-Durbin, Durand-Kerner, DARE |
| [Windowing](doc/windowing/README.md) | Rectangular, Hamming, Hann, Blackman |
| [Neural Network](doc/neural_network/README.md) | Layers, activations, losses, optimizers, regularization |

Each category page lists its algorithms with a brief description and links to the detailed documentation.

## Simulator

Expand Down
90 changes: 90 additions & 0 deletions doc/TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# [Algorithm Name]

## Overview & Motivation

<!--
Why does this algorithm exist? What problem does it solve?
Provide intuition before formulas. Hook the reader with context.
Keep it accessible — a senior engineer unfamiliar with the domain should
understand the "why" after reading this section.
-->

## Mathematical Theory

<!--
Core math: definitions, notation, theorems, derivations.
Break into sub-sections as needed:
### Prerequisites
### Core Definitions
### Derivation
### Proof of Correctness (if applicable)
Use LaTeX ($$..$$) for block equations and ($...$) for inline math.
-->

## Complexity Analysis

<!--
Time and space complexity WITH justification — not just Big-O, but WHY.
Include best, average, and worst cases where applicable.

| Case | Time | Space | Notes |
|---------|------|-------|-------|
| Best | ... | ... | ... |
| Average | ... | ... | ... |
| Worst | ... | ... | ... |
-->

## Step-by-Step Walkthrough

<!--
A worked example with a small, concrete input.
Trace through each step manually. Show intermediate values.
Use tables, diagrams, or numbered steps.
This is the most underrated didactic tool — don't skip it.
-->

## Pitfalls & Edge Cases

<!--
Numerical instability, overflow, degenerate inputs,
assumptions that break. Document:
- What inputs cause problems?
- What precision issues arise?
- What are the implicit assumptions?
-->

## Variants & Generalizations

<!--
Common modifications:
- Iterative vs recursive
- Approximate versions
- Specializations for certain input types
Show the algorithm as a family of ideas, not an isolated technique.
-->

## Applications

<!--
Real-world and theoretical use cases.
Help the reader understand WHEN to reach for this algorithm.
-->

## Connections to Other Algorithms

<!--
How does this relate to other algorithms in the project?
- Reductions (A can be solved using B)
- Similarities and differences
- Tradeoffs vs alternatives
Great for building a mental map of the library.
-->

## References & Further Reading

<!--
Original papers, textbook chapters, online resources.
Use a numbered list or bullet points:
- [Author, "Title", Year](URL)
- Textbook: Chapter X of "Book Title" by Author
-->
Loading
Loading