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
Serde + Stochastic constant biases + moduli in data
Add serde almost everywhere, focusing on inputs: Outputs, such as event details, should be stored differently, e.g. in a column based storage
Add constant offset to noises, add multiplier in TDM parsing/formatting, better check on TDM parsing
Add optional moduli on all OD data type and support reading range moduli
Copy file name to clipboardexpand all lines: README.md
+6
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,12 @@ For Python projects, get started by installing the library via `pip`: `pip insta
62
62
63
63
Nyx is provided under the [AGPLv3 License](./LICENSE). By using this software, you assume responsibility for adhering to the license. Refer to [the pricing page](https://nyxspace.com/pricing/?utm_source=readme-price) for an FAQ on the AGPLv3 license. Notably, any software that incorporates, links to, or depends on Nyx must also be released under the AGPLv3 license, even if you distribute an unmodified version of Nyx.
64
64
65
+
# Versioning
66
+
67
+
Nyx mostly adheres to SemVer. New patch versions should be rare. Updated dependencies trigger a new minor version. _However_ new fields in structures and new behavior may also be added with minor releases, but the public facing initializers and functions should not significantly change (but may still change).
Copy file name to clipboardexpand all lines: src/md/events/details.rs
+4-3
Original file line number
Diff line number
Diff line change
@@ -25,12 +25,13 @@ use crate::md::prelude::{Interpolatable, Traj};
25
25
usecrate::md::EventEvaluator;
26
26
usecrate::time::Duration;
27
27
use core::fmt;
28
+
use serde::{Deserialize,Serialize};
28
29
use std::sync::Arc;
29
30
30
31
/// Enumerates the possible edges of an event in a trajectory.
31
32
///
32
33
/// `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.
36
37
Rising,
@@ -73,14 +74,14 @@ where
73
74
{
74
75
/// Generates detailed information about an event at a specific epoch in a trajectory.
75
76
///
76
-
/// This takes an `Epoch` as an input and returns a `Result<Self, NyxError>`.
77
+
/// This takes an `Epoch` as an input and returns a `Result<Self, EventError>`.
77
78
/// It is designed to determine the state of a trajectory at a given epoch, evaluate the specific event at that state, and ascertain the nature of the event (rising, falling, or unclear).
78
79
/// The initialization intelligently determines the edge type of the event by comparing the event's value at the current, previous, and next epochs.
79
80
/// It ensures robust event characterization in trajectories.
80
81
///
81
82
/// # Returns
82
83
/// - `Ok(EventDetails<S>)` if the state at the given epoch can be determined and the event details are successfully evaluated.
83
-
/// - `Err(NyxError)` if there is an error in retrieving the state at the specified epoch.
84
+
/// - `Err(EventError)` if there is an error in retrieving the state at the specified epoch.
0 commit comments