pub struct BehaviorFeatures {
pub avg_speed_kmh: f64,
pub speed_variance: f64,
pub turning_angle_variance: f64,
pub straightness_index: f64,
pub territory_radius_km: f64,
pub time_span_hours: f64,
pub num_sightings: usize,
pub hour_of_day_sin: f64,
pub hour_of_day_cos: f64,
pub day_of_year_sin: f64,
pub day_of_year_cos: f64,
}Expand description
Features extracted from sighting data for ML
Fields§
§avg_speed_kmh: f64Average speed (km/h)
speed_variance: f64Speed variance
turning_angle_variance: f64Turning angle variance (radians)
straightness_index: f64Net displacement / total distance (straightness index)
territory_radius_km: f64Territory radius estimate (km)
time_span_hours: f64Time since first sighting (hours)
num_sightings: usizeNumber of sightings
hour_of_day_sin: f64Hour of day (0-23) - cyclical feature
hour_of_day_cos: f64§day_of_year_sin: f64Day of year (1-365) - cyclical feature
day_of_year_cos: f64Trait Implementations§
Source§impl Clone for BehaviorFeatures
impl Clone for BehaviorFeatures
Source§fn clone(&self) -> BehaviorFeatures
fn clone(&self) -> BehaviorFeatures
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BehaviorFeatures
impl Debug for BehaviorFeatures
Source§impl<'de> Deserialize<'de> for BehaviorFeatures
impl<'de> Deserialize<'de> for BehaviorFeatures
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BehaviorFeatures
impl RefUnwindSafe for BehaviorFeatures
impl Send for BehaviorFeatures
impl Sync for BehaviorFeatures
impl Unpin for BehaviorFeatures
impl UnsafeUnpin for BehaviorFeatures
impl UnwindSafe for BehaviorFeatures
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
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> DeserializeOwnedAlias for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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