Skip to content

splch/costas-array-generation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:
    git clone https://github.com/splch/costas-array-generation.git
    cd costas-array-generation
  2. Install dependencies:
    pip install -r requirements.txt

Usage

from costas import generate_costas_array, visualize_costas_array

N = 8
result = generate_costas_array(N)

print("Costas permutation:", result)
visualize_costas_array(result)

image

Run examples in the provided main.ipynb.

License

This project is open-sourced under the MIT License.

About

This repository provides tools to generate and visualize Costas arrays.

Topics

Resources

License

Stars

Watchers

Forks