aspcol.soundfieldestimation.nearest_neighbour_freq

aspcol.soundfieldestimation.nearest_neighbour_freq(p_freq, pos, pos_eval)

Estimates the sound field at the evaluation points by simply selecting the value associated with the nearest microphone position.

Parameters:
  • p_freq (ndarray of shape (num_real_freqs, num_mics)) – sound pressure in frequency domain at num_mic microphone positions

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

  • pos_eval (ndarray of shape (num_eval, 3)) – positions of the evaluation points

Returns:

est_sound_pressure – estimated RIR per frequency at the evaluation points

Return type:

ndarray of shape (num_real_freqs, num_eval)