aspcol.soundfieldestimation.inf_dimensional_shd

aspcol.soundfieldestimation.inf_dimensional_shd(p, pos, exp_center, max_order, wave_num, reg_param, dir_coeffs=None)

Estimates the spherical harmonic coefficients with Bayesian inference, allows for arbitrary directivity

Implements the method in Natsuki Ueno, Shoichi Koyama, Hiroshi Saruwatai, ‘Sound Field Recording Using Distributed Microphones Based on Harmonic Analysis of Infinite Order’

Parameters:
  • p (ndarray of shape (num_real_freqs, num_mics)) – complex sound pressure for each microphone and frequency

  • pos (ndarray of shape (num_mics, 3)) – positions of the microphones

  • exp_center (ndarray of shape (1, 3)) – expansion center of the spherical harmonics

  • max_order (int) – maximum order of the spherical harmonics

  • wave_num (float) – wavenumber, defined as w / c where w is the angular frequency and c is the speed of sound

  • reg_param (float) – regularization parameter. Must be non-negative

  • dir_coeffs (ndarray of shape (num_real_freqs, num_coeffs) or (num_real_freqs, num_mics, num_coeffs)) – coefficients of the directivity function. If None, the directivity is assumed to be omnidirectional if the array is 2-dimensional, the same directivity is assumed for all microphones

Returns:

shd_coeffs – harmonic coefficients of the estimated sound field

Return type:

complex ndarray of shape (num_real_freqs, num_coeffs)