aspcol.soundfieldestimation.est_spatial_spectrum_dynamic
- aspcol.soundfieldestimation.est_spatial_spectrum_dynamic(p, pos, pos_eval, sequence, samplerate, c, reg_param, r_max=None, verbose=False, return_params=False)
Estimates the RIR at evaluation positions using data from a moving microphone
Implements the method from Katzberg et al. “Spherical harmonic representation for dynamic sound-field measurements”
Assumptions: The spherical harmonics are expanded around the origin (0,0,0) The sequence is periodic, and the pressure is measured for an integer number of periods The length of sequence is the length of the estimated RIR
- Parameters:
p (ndarray of shape (N)) – sound pressure for each sample of the moving microphone
pos (ndarray of shape (N, 3)) – position of the trajectory for each sample
pos_eval (ndarray of shape (num_eval, 3)) – positions of the evaluation points
sequence (ndarray of shape (seq_len) or (1, seq_len)) – the training signal used for the measurements
samplerate (int)
c (float) – speed of sound
r_max (float, optional) – radius of the sphere onto which the spatial spectrum is computed. If not provided, it is set to the maximum distance from the origin to any of the microphone positions.
verbose (bool, optional) – if True, returns diagnostics, by default False
- Returns:
est_sound_pressure – estimated RIR per frequency at the evaluation points
- Return type:
ndarray of shape (num_real_freqs, num_eval)