aspcol.soundfieldestimation.pseq_nearest_neighbour

aspcol.soundfieldestimation.pseq_nearest_neighbour(p, seq, pos, pos_eval)

Estimates the sound field at the evaluation points by simply selecting the value associated with the nearest microphone position. Assumes that the sequence is a perfect periodic sequence.

Parameters:
  • p (ndarray of shape (num_mic, seq_len)) – sound pressure in time domain at num_mic microphone positions

  • seq (ndarray of shape (seq_len) or (1, seq_len)) – training signal used for the measurements

  • 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)