aspcol.soundfieldestimation.krr_stationary_mics_direction_regularized_approx

aspcol.soundfieldestimation.krr_stationary_mics_direction_regularized_approx(ir_mic, pos_mic, pos_eval, samplerate, c, reg_param, direction, beta)

Estimates the impulse responses at the evaluation points using kernel ridge regression.

Adds a directional weighting to regularize the sound field. This is done by using a linear regularization operator.

Assumes a diagonal directional weighting, formulated such that lvert w(d) rvert is a von Mises-Fisher distribution, which gives a closed-form solution for the kernel function.

Parameters:
  • ir_mic (np.ndarray of shape (num_mics, ir_len)) – The impulse responses measure at the microphones.

  • pos_mic (np.ndarray of shape (num_mics, 3)) – The position of the microphones.

  • pos_eval (np.ndarray of shape (num_eval, 3)) – The position of the evaluation points.

  • c (float) – The speed of sound.

  • reg_param (float) – The regularization parameter

  • direction (np.ndarray of shape (1, 3)) – a unit vector describing the direction of the weighting. The direction should be from (0,0,0) towards the source.

  • beta (float) – The strength of the weighting. A larger value will give more regularization.

Returns:

ir_eval – The estimated impulse responses at the evaluation points.

Return type:

np.ndarray of shape (num_eval, ir_len)