pub struct SonicToponymStreamer {
pub site_coord: GeodeticCoord,
pub wave_bounds: TimeFrequencyBox,
pub custodial_scope_id: u64,
pub base_spl_db: f32,
}Expand description
Geospatial Sonic Toponym Streamer binding raw physical acoustic wave-fields to 3D terrain coordinates, with terrain-aware acoustic propagation.
Fields§
§site_coord: GeodeticCoordGeodesic anchor coordinate of the sonic toponym / sacred site
wave_bounds: TimeFrequencyBoxTime-frequency bounds of the acoustic recording
custodial_scope_id: u64Custodial Scope DID Hash
base_spl_db: f32Base sound pressure level in dB at 1 meter
Implementations§
Source§impl SonicToponymStreamer
impl SonicToponymStreamer
pub fn new( site_coord: GeodeticCoord, wave_bounds: TimeFrequencyBox, custodial_scope_id: u64, base_spl_db: f32, ) -> Self
Sourcepub fn evaluate_listener_spl_db(
&self,
listener_coord: &GeodeticCoord,
frame: &GeodeticFrame,
) -> f32
pub fn evaluate_listener_spl_db( &self, listener_coord: &GeodeticCoord, frame: &GeodeticFrame, ) -> f32
Calculates acoustic attenuation in dB at a listener coordinate over terrain.
Follows the inverse-square law: $L = L_0 - 20 \log_{10}(d)$ with elevation damping.
Sourcepub fn evaluate_doppler_factor(
&self,
listener_velocity_m_s: [f64; 3],
listener_coord: &GeodeticCoord,
frame: &GeodeticFrame,
) -> f64
pub fn evaluate_doppler_factor( &self, listener_velocity_m_s: [f64; 3], listener_coord: &GeodeticCoord, frame: &GeodeticFrame, ) -> f64
Evaluates Doppler pitch shift factor $f’ / f = 1 + v_r / c$ for a moving listener.
Trait Implementations§
Source§impl Clone for SonicToponymStreamer
impl Clone for SonicToponymStreamer
Source§impl Debug for SonicToponymStreamer
impl Debug for SonicToponymStreamer
Source§impl PartialEq for SonicToponymStreamer
impl PartialEq for SonicToponymStreamer
impl StructuralPartialEq for SonicToponymStreamer
Auto Trait Implementations§
impl Freeze for SonicToponymStreamer
impl RefUnwindSafe for SonicToponymStreamer
impl Send for SonicToponymStreamer
impl Sync for SonicToponymStreamer
impl Unpin for SonicToponymStreamer
impl UnsafeUnpin for SonicToponymStreamer
impl UnwindSafe for SonicToponymStreamer
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more