-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SHT and CHT #7
Comments
I just changed the title of this issue, since it's about the usage of the matrices. There is nothing wrong with the matrices themselves. |
There seem to be (at least) two issues here:
Currently the output But it is maybe better to treat Either way it really needs better documentation. |
Turns out the docstrings of |
According to Eq. (3.34) in Rafaely, 2015, the forward and inverse discrete spherical harmonic transform are defined as
where
fnm
denotes the SHT coefficient vector,f
the sound field vector,Y
the spherical harmonics matrix, andY^-1
its pseudo-inverse. In our toolbox, we are using the same matrixY
(seesht_matrix
), but it is not used in a consistent way.sfa-numpy/examples/modal_beamforming_rigid_array.py
Lines 20 to 26 in 43329a7
Here,
Y_p
is used for the synthesis (inverse transform) which follows the convention introduced in [Rafaely, 2015].sfa-numpy/examples/modal_beamforming_rigid_array.py
Lines 28 to 40 in 43329a7
In the following part (PWD), however,
Y_p
is used for the analysis (forward transform).The user should also note that
Y_p
is different for the analysis (withweights
)and synthesis (without
weights
)The same applies to CHT.
In my opinion, we need to specify the usage of the SHT and CHT matrices in the document or in the docstrings.
The text was updated successfully, but these errors were encountered: