Skip to content

Commit

Permalink
change api
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiim committed Jul 16, 2024
1 parent 4073cbe commit 588a029
Show file tree
Hide file tree
Showing 10 changed files with 200 additions and 161 deletions.
52 changes: 27 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Classical DOA Estimation algorithms implemented in Python.
```bash
pip install classical_doa
```

or install from source

```bash
Expand All @@ -25,7 +26,7 @@ A sample example of DOA estimation using MUSIC algorithm.
import numpy as np

from classical_doa import arrays, signals
from classical_doa.algorithm.music import music
from classical_doa.algorithm import music
from classical_doa.plot import plot_spatial_spectrum

# Create a 8-element ULA with 0.5m spacing
Expand Down Expand Up @@ -57,44 +58,45 @@ plot_spatial_spectrum(
num_signal=2,
)
```

You will a get a figure like this:
![music_spectrum](pics/music_spectrum.svg)

Check `examples` for more examples.

## What's implemented
## What's implemented

### Array Structures

* Uniform Linear Array (ULA)
* Uniform Rectangular Array (URA, to be implemented)
* Uniform Circular Array (UCA)
- Uniform Linear Array (ULA)
- Uniform Rectangular Array (URA, to be implemented)
- Uniform Circular Array (UCA)

### Signal Models

* Narrowband
complex stochastic signal
* Broadband
chirp signal
- Narrowband
complex stochastic signal
- Broadband
chirp signal

### Algorithms

* ULA
- [x] MUSIC
- [x] ESPRIT
- [x] Root-MUSIC
- [x] OMP
- [x] l1-SVD
* URA
- [ ] URA-MUSIC
- [ ] URA-ESPRIT
* UCA
- [x] UCA-RB-MUSIC
- [x] UCA-ESPRIT
* Broadband
- [x] ISSM
- [x] CSSM
- [x] TOPS
- ULA
- [x] MUSIC
- [x] ESPRIT
- [x] Root-MUSIC
- [x] OMP
- [x] l1-SVD
- URA
- [ ] URA-MUSIC
- [ ] URA-ESPRIT
- UCA
- [x] UCA-RB-MUSIC
- [x] UCA-ESPRIT
- Broadband
- [x] ISSM
- [x] CSSM
- [x] TOPS

## License

Expand Down
2 changes: 1 addition & 1 deletion classical_doa/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "1.0.2"
__version__ = "1.0.3"
__author__ = "Qian Xu"
4 changes: 4 additions & 0 deletions classical_doa/algorithm/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from .broadband import *
from .esprit import *
from .music import *
from .sparse import *
3 changes: 3 additions & 0 deletions classical_doa/algorithm/broadband/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .cssm import *
from .imusic import *
from .tops import *
42 changes: 24 additions & 18 deletions examples/broadband.ipynb

Large diffs are not rendered by default.

42 changes: 23 additions & 19 deletions examples/broadband_cn.ipynb

Large diffs are not rendered by default.

44 changes: 25 additions & 19 deletions examples/uca.ipynb

Large diffs are not rendered by default.

44 changes: 24 additions & 20 deletions examples/uca_cn.ipynb

Large diffs are not rendered by default.

66 changes: 36 additions & 30 deletions examples/ula.ipynb

Large diffs are not rendered by default.

62 changes: 33 additions & 29 deletions examples/ula_cn.ipynb

Large diffs are not rendered by default.

0 comments on commit 588a029

Please sign in to comment.