compute_mie_phase
compute_mie_phase(ab, C_sca, wavelength, n_med, cos_theta) ⇒ number
Computes the normalized Mie phase function value for a specific angle.
The phase function P(theta) is normalized such that the integral over 4pi solid angle is 4pi. This implementation uses the recurrence relations for angular functions pi_n and tau_n as described by Bohren & Huffman.
Kind: global function
Returns: number - The normalized phase function value P(theta).
| Param | Type | Description |
|---|---|---|
| ab | Float32Array | The flat array of a_n, b_n coefficients from LorenzMie_coefs. |
| C_sca | number | total scattering cross-section for normalization |
| wavelength | number | Wavelength of light in vacuum (in meters). |
| n_med | vec2 | Complex refractive index of the medium. |
| cos_theta | number | Cosine of the angle between incoming light and observation angle. |