Skip to main content

Module ray_rir

Module ray_rir 

Source
Expand description

Q05 Mode 0x0003: Ray / RIR path contributions (64 B) with band transfer, phase, and diffraction metadata.

Strictly enforces unit direction norm (<= 1e-5 in f64), nonnegative distance/delay, energy-ratio vs signed/complex pressure amplitude distinction (never inventing phase from energy), explicit diffraction models (none, UTD-wedge, BTM-aperture), and bounds-checked band_row.

Structs§

RayContributionChunkView
Zero-heap borrowed view over verified 0x0003 ray records.
RayContributionRecord
Exact 64-byte wire record for mode 0x0003 (RayContribution).
RayContributionView

Enums§

BandPhaseModel
DiffractionModel
GainQuantity
RayBandValues
Decoded band transfer values preserving energy vs signed vs complex phase distinctions.

Constants§

RAY_RECORD_STRIDE
RAY_VALID_ALL
RAY_VALID_DELAY
RAY_VALID_DOPPLER

Functions§

planar_impedance_reflection_energy
Normal-incidence reflection & transmission energy conservation helper: R_p = (Z2 - Z1) / (Z2 + Z1), E_reflected = R_p^2, E_transmitted = 1 - R_p^2.
read_ray_contributions_qac
write_ray_contributions_qac
Writes canonical QAC v1 mode 0x0003 rays + auxiliary band centers/values/weights (0x0107).