pub struct Results<S: InterpState, R> where
DefaultAllocator: Allocator<f64, S::Size> + Allocator<f64, S::Size, S::Size> + Allocator<usize, S::Size, S::Size> + Allocator<f64, S::VecLength>,
<DefaultAllocator as Allocator<f64, S::VecLength>>::Buffer: Send, {
pub runs: Vec<Run<S, R>>,
pub scenario: String,
}
Expand description
A structure of Monte Carlo results
Fields
runs: Vec<Run<S, R>>
Raw data from each run, sorted by run index for O(1) access to each run
scenario: String
Name of this scenario
Implementations
sourceimpl<S: InterpState> Results<S, PropResult<S>> where
DefaultAllocator: Allocator<f64, S::Size> + Allocator<f64, S::Size, S::Size> + Allocator<usize, S::Size, S::Size> + Allocator<f64, S::VecLength>,
<DefaultAllocator as Allocator<f64, S::VecLength>>::Buffer: Send,
impl<S: InterpState> Results<S, PropResult<S>> where
DefaultAllocator: Allocator<f64, S::Size> + Allocator<f64, S::Size, S::Size> + Allocator<usize, S::Size, S::Size> + Allocator<f64, S::VecLength>,
<DefaultAllocator as Allocator<f64, S::VecLength>>::Buffer: Send,
sourcepub fn every_value_of_between(
&self,
param: &StateParameter,
step: Duration,
start: Epoch,
end: Epoch,
value_if_run_failed: Option<f64>
) -> Vec<f64>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn every_value_of_between(
&self,
param: &StateParameter,
step: Duration,
start: Epoch,
end: Epoch,
value_if_run_failed: Option<f64>
) -> Vec<f64>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Returns the value of the requested state parameter for all trajectories from start
to end
every step
and
using the value of value_if_run_failed
if set and skipping that run if the run failed
sourcepub fn every_value_of(
&self,
param: &StateParameter,
step: Duration,
value_if_run_failed: Option<f64>
) -> Vec<f64>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn every_value_of(
&self,
param: &StateParameter,
step: Duration,
value_if_run_failed: Option<f64>
) -> Vec<f64>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Returns the value of the requested state parameter for all trajectories from the start to the end of each trajectory and
using the value of value_if_run_failed
if set and skipping that run if the run failed
sourcepub fn first_values_of(
&self,
param: &StateParameter,
value_if_run_failed: Option<f64>
) -> Vec<f64>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn first_values_of(
&self,
param: &StateParameter,
value_if_run_failed: Option<f64>
) -> Vec<f64>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Returns the value of the requested state parameter for the first state and
using the value of value_if_run_failed
if set and skipping that run if the run failed
sourcepub fn last_values_of(
&self,
param: &StateParameter,
value_if_run_failed: Option<f64>
) -> Vec<f64>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn last_values_of(
&self,
param: &StateParameter,
value_if_run_failed: Option<f64>
) -> Vec<f64>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Returns the value of the requested state parameter for the first state and
using the value of value_if_run_failed
if set and skipping that run if the run failed
sourcepub fn dispersion_values_of(
&self,
param: &StateParameter
) -> Result<Vec<f64>, NyxError>
pub fn dispersion_values_of(
&self,
param: &StateParameter
) -> Result<Vec<f64>, NyxError>
Returns the dispersion values of the requested state parameter
Auto Trait Implementations
impl<S, R> RefUnwindSafe for Results<S, R> where
R: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, R> Send for Results<S, R> where
R: Send,
impl<S, R> Sync for Results<S, R> where
R: Sync,
impl<S, R> Unpin for Results<S, R> where
R: Unpin,
S: Unpin,
impl<S, R> UnwindSafe for Results<S, R> where
R: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.