aspcol.kernelinterpolation.kernel_reciprocal_3d

aspcol.kernelinterpolation.kernel_reciprocal_3d(points1, points2, wave_num)

Reciprocal kernel for room impulse response interpolation. Definition found in ‘Kernel interpolation of acoustic transfer function between regions considering reciprocity’ by Ribeiro, Ueno, Koyama, Saruwatari.

Parameters:
  • points1 (2-tuple of (mic_points1, src_points1)) – where mic_points ndarray of shape (num_mic1, 3) and src_points ndarray of shape (num_src1, 3)

  • points2 (same type of object as points1,) – although the ndarray shapes can be different

  • wave_num (ndarray of shape (num_freqs,))

Returns:

When flattened, the index for microphone m, speaker l is m+l*M. i.e. the microphone index changes faster.

Return type:

ndarray of shape (num_freqs, num_mic1*num_src1, num_mic2*num_src2)