Acoular 25.03 documentation

acoular.environments.dist_mat

«  SlotJet   ::   environments   ::   acoular.environments.cylToCart  »

acoular.environments.dist_mat

acoular.environments.dist_mat(gpos, mpos)

Compute distance matrix. (accelerated with numba).

Given an (3, N) array of the locations of points in the beamforming map grid in 3D cartesian coordinates and (3, M) array of the locations of microphones in 3D cartesian coordinates, the (N, M) matrix of the distances between each microphone and each point in the beamforming map grip.

Parameters:
gposnumpy.ndarray of floats

The locations of N points in the beamforming map grid in 3D cartesian coordinates, shape (3, N).

mposnumpy.ndarray of floats

The locations of M microphones in 3D cartesian coordinates, shape (3, M).

Returns:
numpy.ndarray of floats

Matrix of the distances between each microphone and each point in the beamforming map grid, shape (N, M).

«  SlotJet   ::   environments   ::   acoular.environments.cylToCart  »