aspcol.planewaves.apply_measurement

aspcol.planewaves.apply_measurement(pw_coeffs, dir_func, rng, num_samples)

Returns the signal that a microphone with directionality given by dir_func would record. The microphone must be located at the expansion center for the plane wave coefficients.

Defined as (7) in Brunnström et al 2024.

Parameters:
  • pw_coeffs (function) – the coefficients of the plane wave expansion defining the soundfield. This is a function that takes a direction unit vector and returns a complex value response.

  • dir_func (function) – A function that takes direction unit vectors, ndarray of shape (num_points, 3) and returns a complex value response of shape (num_points)

  • rng (numpy.random.Generator) – The random number generator to use

  • num_samples (int) – The number of samples to use for the monte carlo integration