You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// `EventEdge` is used to describe the nature of a trajectory event, particularly in terms of its temporal dynamics relative to a specified condition or threshold. This enum helps in distinguishing whether the event is occurring at a rising edge, a falling edge, or if the edge is unclear due to insufficient data or ambiguous conditions.
/// Represents a rising edge of the event. This indicates that the event is transitioning from a lower to a higher evaluation of the event. For example, in the context of elevation, a rising edge would indicate an increase in elevation from a lower angle.
309
318
Rising,
@@ -317,6 +326,17 @@ pub enum EventEdge {
317
326
Unclear,
318
327
}
319
328
329
+
#[cfg(feature = "python")]
330
+
#[cfg_attr(feature = "python", pymethods)]
331
+
implEventEdge{
332
+
fn__eq__(&self,other:&Self) -> bool{
333
+
self == other
334
+
}
335
+
fn__ne__(&self,other:&Self) -> bool{
336
+
self != other
337
+
}
338
+
}
339
+
320
340
/// Represents the details of an event occurring along a trajectory.
321
341
///
322
342
/// `EventDetails` encapsulates the state at which a particular event occurs in a trajectory, along with additional information about the nature of the event. This struct is particularly useful for understanding the dynamics of the event, such as whether it represents a rising or falling edge, or if the edge is unclear.
@@ -325,7 +345,7 @@ pub enum EventEdge {
325
345
/// S: Interpolatable - A type that represents the state of the trajectory. This type must implement the `Interpolatable` trait, ensuring that it can be interpolated and manipulated according to the trajectory's requirements.
0 commit comments