pub struct DiachronicIsogloss {
pub lect_id_hash: u64,
pub center_coord: GeodeticCoord,
pub radius_m: f64,
pub era_start_year: f32,
pub era_end_year: f32,
}Expand description
Diachronic Isogloss boundary representing the spatial and temporal distribution of a linguistic feature or lect variety over a geographical region.
Fields§
§lect_id_hash: u64Lect variety identifier
center_coord: GeodeticCoordBounding polygon center coordinate in geodetic frame
radius_m: f64Spatial radius in meters from center where the feature is active
era_start_year: f32Historical era start year (e.g. 1850.0)
era_end_year: f32Historical era end year (e.g. 1920.0)
Implementations§
Source§impl DiachronicIsogloss
impl DiachronicIsogloss
pub fn new( lect_id_hash: u64, center_coord: GeodeticCoord, radius_m: f64, era_start_year: f32, era_end_year: f32, ) -> Self
Sourcepub fn contains_point(
&self,
coord: &GeodeticCoord,
year: f32,
frame: &GeodeticFrame,
) -> bool
pub fn contains_point( &self, coord: &GeodeticCoord, year: f32, frame: &GeodeticFrame, ) -> bool
Evaluates whether a target coordinate and timestamp fall within this isogloss.
Sourcepub fn evaluate_attenuation_weight(
&self,
coord: &GeodeticCoord,
year: f32,
frame: &GeodeticFrame,
) -> f64
pub fn evaluate_attenuation_weight( &self, coord: &GeodeticCoord, year: f32, frame: &GeodeticFrame, ) -> f64
Evaluates acoustic prosody attenuation weight $w \in [0.0, 1.0]$ based on radial distance.
Trait Implementations§
Source§impl Clone for DiachronicIsogloss
impl Clone for DiachronicIsogloss
Source§impl Debug for DiachronicIsogloss
impl Debug for DiachronicIsogloss
Source§impl PartialEq for DiachronicIsogloss
impl PartialEq for DiachronicIsogloss
impl StructuralPartialEq for DiachronicIsogloss
Auto Trait Implementations§
impl Freeze for DiachronicIsogloss
impl RefUnwindSafe for DiachronicIsogloss
impl Send for DiachronicIsogloss
impl Sync for DiachronicIsogloss
impl Unpin for DiachronicIsogloss
impl UnsafeUnpin for DiachronicIsogloss
impl UnwindSafe for DiachronicIsogloss
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