Skip to content

Commit 8e0b94b

Browse files
committed
correct typo and math format
1 parent b2961c5 commit 8e0b94b

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

examples/modal_beamforming_rigid_circular_array.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
Compute the plane wave decomposition for an incident broadband plane wave
3-
on an open circular array using a modal beamformer of finite order.
3+
on an rigid circular array using a modal beamformer of finite order.
44
"""
55

66
import numpy as np
@@ -18,22 +18,20 @@
1818
# get uniform grid (microphone positions) of number M
1919
pol, weights = micarray.modal.angular.grid_equal_polar_angle(M)
2020

21-
# get circular harmonics matrix for sensors
21+
# pressure on the surface of a rigid cylinder for an incident plane wave
2222
bn = micarray.modal.radial.circular_pw(Nsf, k, r, setup='rigid')
2323
D = micarray.modal.radial.circ_diagonal_mode_mat(bn)
2424
Psi_p = micarray.modal.angular.cht_matrix(Nsf, pol, weights)
2525
Psi_pw = micarray.modal.angular.cht_matrix(Nsf, pw_angle)
2626
p = np.matmul(np.matmul(np.conj(Psi_pw.T), D), Psi_p)
2727
p = np.squeeze(p)
2828

29-
# get circular harmonics matrix for a source ensemble of azimuthal plane wave
29+
# plane wave decomposition using modal beamforming
3030
Psi_p = micarray.modal.angular.cht_matrix(N, pol)
3131
Psi_q = micarray.modal.angular.cht_matrix(N, pol_pwd)
32-
# get radial filters
3332
Bn = micarray.modal.radial.circular_pw(N, k, r, setup='rigid')
3433
Dn, _ = micarray.modal.radial.regularize(1/Bn, 100, 'softclip')
3534
D = micarray.modal.radial.circ_diagonal_mode_mat(Dn)
36-
# compute plane wave decomposition
3735
A_pwd = np.matmul(np.matmul(np.conj(Psi_q.T), D), Psi_p)
3836
q_pwd = np.squeeze(np.matmul(A_pwd, np.expand_dims(p, 2)))
3937
q_pwd_t = np.fft.fftshift(np.fft.irfft(q_pwd, axis=0), axes=0)

micarray/modal/angular.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def cht_matrix(N, pol, weights=None):
102102
1 & \cdots & e^{i\varphi[0]} & e^{iN\varphi[0]} & e^{-iN\varphi[0]} & \cdots & e^{-i\varphi[0]} \\
103103
1 & \cdots & e^{i\varphi[1]} & e^{iN\varphi[1]} & e^{-iN\varphi[1]} & \cdots & e^{-i\varphi[1]} \\
104104
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
105-
1, \cdots, & e^{i\varphi[Q-1]} & e^{iN\varphi[Q-1]} & e^{-iN\varphi[Q-1]} & \cdots & e^{-i\varphi[Q-1]} \\
105+
1 & \cdots & e^{i\varphi[Q-1]} & e^{iN\varphi[Q-1]} & e^{-iN\varphi[Q-1]} & \cdots & e^{-i\varphi[Q-1]}
106106
\end{array} \right]
107107
108108
Parameters
@@ -117,7 +117,7 @@ def cht_matrix(N, pol, weights=None):
117117
Returns
118118
-------
119119
Psi : (2N+1, Q) numpy.ndarray
120-
Matrix of spherical harmonics.
120+
Matrix of circular harmonics.
121121
"""
122122
pol = util.asarray_1d(pol)
123123
if pol.ndim == 0:

0 commit comments

Comments
 (0)