coefficients#
- deeptrack.backend.mie.coefficients(m: float | complex, a: float, L: int) Tuple[ndarray, ndarray] #
Calculate the Mie scattering coefficients for a spherical particle.
These coefficients are used in the computation of the scattering and absorption of light by the particle. The terms up to (and including) order L are calculated using Riccati-Bessel polynomials.
Parameters#
- mfloat or complex
The relative refractive index of the particle n_particle / n_medium.
- afloat
The radius of the particle (> 0).
- Lint
The maximum order of the spherical harmonics to be calculated.
Returns#
- Tuple[np.ndarray, np.ndarray]
A tuple containing two arrays of complex numbers, A and B, which are the Mie scattering coefficients up to (and including) order L.