pub struct Run {
pub seed: u64,
pub samples: Vec<Sample>,
}Expand description
The samples of a run, in order.
Fields§
§seed: u64The seed.
samples: Vec<Sample>The samples, by index.
Implementations§
Source§impl Run
impl Run
Sourcepub fn distribution(
&self,
value: impl Fn(&FlightSummary) -> Option<f64>,
) -> Result<Distribution, AnalysisError>
pub fn distribution( &self, value: impl Fn(&FlightSummary) -> Option<f64>, ) -> Result<Distribution, AnalysisError>
The distribution of value over every sample: a failed sample, or one for which value
gives None, counts as tried with no value.
§Errors
AnalysisError::Domain for a value that isn’t finite.
Sourcepub fn apogee(&self) -> Result<Distribution, AnalysisError>
pub fn apogee(&self) -> Result<Distribution, AnalysisError>
Sourcepub fn landing(&self) -> Result<Scatter, AnalysisError>
pub fn landing(&self) -> Result<Scatter, AnalysisError>
Where the flights landed, east and north of the pad (m): the part that keeps the nose,
the stack, after a powered separation the sustainer, or after a split with nothing left to
burn part 0 (FlightSummary::nose_landing). A failed sample, or one that never landed,
counts as tried with no point. Its ellipses are in crate::ellipse.
§Errors
AnalysisError::Domain for a coordinate that isn’t finite, or is more than
Scatter::MAX_COORDINATE_M from the pad.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Run
impl<'de> Deserialize<'de> for Run
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
impl StructuralPartialEq for Run
Auto Trait Implementations§
impl Freeze for Run
impl RefUnwindSafe for Run
impl Send for Run
impl Sync for Run
impl Unpin for Run
impl UnsafeUnpin for Run
impl UnwindSafe for Run
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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