https://github.com/splch/costas-array-generation
This repository provides tools to generate and visualize Costas arrays.
https://github.com/splch/costas-array-generation
costas costas-array costas-arrays
Last synced: over 1 year ago
JSON representation
This repository provides tools to generate and visualize Costas arrays.
- Host: GitHub
- URL: https://github.com/splch/costas-array-generation
- Owner: splch
- License: mit
- Created: 2025-01-26T14:48:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-26T18:46:10.000Z (over 1 year ago)
- Last Synced: 2025-03-15T06:14:28.941Z (over 1 year ago)
- Topics: costas, costas-array, costas-arrays
- Language: Jupyter Notebook
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Costas Array Generator
This repository provides tools to generate and visualize **Costas arrays**, mathematical structures with applications in radar, sonar, and communications.
## Features
- **Welch Construction** for fast generation when applicable (\(N+1\) is prime).
- **Backtracking Search** as a fallback for general \(N\).
- **Visualization** of arrays using `matplotlib`.
## Installation
1. Clone the repository:
```bash
git clone https://github.com/splch/costas-array-generation.git
cd costas-array-generation
```
2. Install dependencies:
```bash
pip install -r requirements.txt
```
## Usage
```python
from costas import generate_costas_array, visualize_costas_array
N = 8
result = generate_costas_array(N)
print("Costas permutation:", result)
visualize_costas_array(result)
```

Run examples in the provided `main.ipynb`.
## License
This project is open-sourced under the [MIT License](https://opensource.org/licenses/MIT).