aspcol.kernelinterpolation.kernel_directional_3d

aspcol.kernelinterpolation.kernel_directional_3d(points1, points2, wave_num, direction_vec, beta)

Directionally weighted kernel for 3D sound field interpolation. Defined in ‘Spatial active noise control based on kernel interpolation of sound field’ by Koyama, Brunnström, Ito, Ueno, Saruwatari.

If used for sound field estimation, the direction should be set in the preferred propagation direction This means that for a receiver at [0,0,0] and a source at [10,0,0], the direction should be [-1,0,0]

Parameters:
  • points1 (ndarray of shape (num_points1, 3))

  • points2 (ndarray of shape (num_points2, 3))

  • wave_num (ndarray of shape (num_freqs,))

  • direction_vec (ndarray of shape (num_angles, 3)) – unit vectors describing the arrival direction

  • beta (float nonnegative) – sets the strength of the directional weighting

Return type:

ndarray of shape (num_freqs, num_angles, num_points1, num_points2)