Skip to main content

two_ray_factor

Function two_ray_factor 

Source
pub fn two_ray_factor(
    distance: f64,
    ht: f64,
    hr: f64,
    frequency: f64,
    ground: Option<(C64, ReflectionPolarization)>,
) -> Result<C64, ErrorsJSL>
Expand description

The two-ray model: the field of the direct ray plus the ground-reflected ray between antennas at heights ht, hr (m) a ground distance d apart, relative to the direct ray alone in free space: 1 + Γ (r₁/r₂) e^{−jk(r₂ − r₁)}. The received power is the free-space power times |factor|². With reflection = None, a perfect reflector Γ = −1 is assumed; otherwise the Fresnel coefficient of the given ground is used.