pub struct UncertainSolverResult<S: Scalar> {
pub result: SolverResult<S>,
pub sigma: Vec<S>,
pub sensitivities: Option<Vec<Vec<S>>>,
pub params: Vec<UncertainParam<S>>,
}Expand description
ODE result with uncertainty bands.
Fields§
§result: SolverResult<S>Base result (nominal trajectory).
sigma: Vec<S>Standard deviation at each output time, for each component.
sigma[i * dim + j] = std dev of component j at time i.
sensitivities: Option<Vec<Vec<S>>>Sensitivity matrices at each output time (Trajectory mode only).
Each entry is a flat row-major matrix of shape (n_states, n_params).
sensitivities[i][j * n_params + k] = dy_j/dp_k at time i.
params: Vec<UncertainParam<S>>Parameter information.
Implementations§
Source§impl<S: Scalar> UncertainSolverResult<S>
impl<S: Scalar> UncertainSolverResult<S>
Sourcepub fn uncertain_at(&self, i: usize, j: usize) -> Uncertain<S>
pub fn uncertain_at(&self, i: usize, j: usize) -> Uncertain<S>
Get the uncertain value (mean +/- std) for component j at time index i.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for UncertainSolverResult<S>where
S: Freeze,
impl<S> RefUnwindSafe for UncertainSolverResult<S>where
S: RefUnwindSafe,
impl<S> Send for UncertainSolverResult<S>
impl<S> Sync for UncertainSolverResult<S>
impl<S> Unpin for UncertainSolverResult<S>where
S: Unpin,
impl<S> UnsafeUnpin for UncertainSolverResult<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for UncertainSolverResult<S>where
S: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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