pub struct MultipathChannel {
pub delays: Vec<f64>,
pub gains: Vec<C64>,
}Expand description
A tapped-delay-line multipath channel h(t) = Σ a_i δ(t − τ_i).
Fields§
§delays: Vec<f64>Path delays (s).
gains: Vec<C64>Complex path amplitudes.
Implementations§
Source§impl MultipathChannel
impl MultipathChannel
pub fn new(delays: Vec<f64>, gains: Vec<C64>) -> Result<Self, ErrorsJSL>
Sourcepub fn frequency_response(&self, frequency: f64) -> C64
pub fn frequency_response(&self, frequency: f64) -> C64
The frequency response H(f) = Σ a_i e^{−j2πfτ_i}.
Sourcepub fn delay_statistics(&self) -> (f64, f64)
pub fn delay_statistics(&self) -> (f64, f64)
The power-weighted mean delay and the RMS delay spread (s).
Sourcepub fn coherence_bandwidth(&self) -> f64
pub fn coherence_bandwidth(&self) -> f64
The 50% coherence bandwidth estimate 1 / (5 σ_τ) (Hz).
Trait Implementations§
Source§impl Clone for MultipathChannel
impl Clone for MultipathChannel
Source§impl Debug for MultipathChannel
impl Debug for MultipathChannel
Source§impl PartialEq for MultipathChannel
impl PartialEq for MultipathChannel
impl StructuralPartialEq for MultipathChannel
Auto Trait Implementations§
impl Freeze for MultipathChannel
impl RefUnwindSafe for MultipathChannel
impl Send for MultipathChannel
impl Sync for MultipathChannel
impl Unpin for MultipathChannel
impl UnsafeUnpin for MultipathChannel
impl UnwindSafe for MultipathChannel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more