Skip to content

Commit

Permalink
Fix bug in Capon beamforming
Browse files Browse the repository at this point in the history
  • Loading branch information
devtty1er committed Mar 16, 2022
1 parent 65bcd62 commit 7cc3174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmwave/dsp/angle_estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def aoa_capon(x, steering_vector, magnitude=False):

Rxx = cov_matrix(x)
Rxx = forward_backward_avg(Rxx)
Rxx_inv = np.linalg.inv(Rxx)
Rxx_inv = np.linalg.pinv(Rxx)
# Calculate Covariance Matrix Rxx
first = Rxx_inv @ steering_vector.T
den = np.reciprocal(np.einsum('ij,ij->i', steering_vector.conj(), first.T))
Expand Down

0 comments on commit 7cc3174

Please sign in to comment.