Struct relearn::simulation::StepsSummary
source · [−]pub struct StepsSummary<F: Feedback> {
pub step_feedback: F::StepSummary,
pub episode_feedback: F::EpisodeSummary,
pub episode_length: OnlineMeanVariance<f64>,
}
Expand description
Summary statistics of simulation steps.
Fields
step_feedback: F::StepSummary
Per-step feedback summary
episode_feedback: F::EpisodeSummary
Per-episode feedback summary
episode_length: OnlineMeanVariance<f64>
Episode length statistics
Implementations
sourceimpl<F: Feedback> StepsSummary<F>
impl<F: Feedback> StepsSummary<F>
Trait Implementations
sourceimpl<F: Feedback> Add<StepsSummary<F>> for StepsSummary<F>
impl<F: Feedback> Add<StepsSummary<F>> for StepsSummary<F>
type Output = StepsSummary<F>
type Output = StepsSummary<F>
The resulting type after applying the +
operator.
sourceimpl<F: Feedback> AddAssign<StepsSummary<F>> for StepsSummary<F>
impl<F: Feedback> AddAssign<StepsSummary<F>> for StepsSummary<F>
sourcefn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the +=
operation. Read more
sourceimpl<F: Clone + Feedback> Clone for StepsSummary<F> where
F::StepSummary: Clone,
F::EpisodeSummary: Clone,
impl<F: Clone + Feedback> Clone for StepsSummary<F> where
F::StepSummary: Clone,
F::EpisodeSummary: Clone,
sourcefn clone(&self) -> StepsSummary<F>
fn clone(&self) -> StepsSummary<F>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<F: Debug + Feedback> Debug for StepsSummary<F> where
F::StepSummary: Debug,
F::EpisodeSummary: Debug,
impl<F: Debug + Feedback> Debug for StepsSummary<F> where
F::StepSummary: Debug,
F::EpisodeSummary: Debug,
sourceimpl<F: Feedback> Default for StepsSummary<F>
impl<F: Feedback> Default for StepsSummary<F>
sourceimpl<'de, F: Feedback> Deserialize<'de> for StepsSummary<F> where
F::StepSummary: Deserialize<'de>,
F::EpisodeSummary: Deserialize<'de>,
impl<'de, F: Feedback> Deserialize<'de> for StepsSummary<F> where
F::StepSummary: Deserialize<'de>,
F::EpisodeSummary: Deserialize<'de>,
sourcefn 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
sourceimpl<F> Display for StepsSummary<F> where
F: Feedback,
F::StepSummary: Display,
F::EpisodeSummary: Display,
impl<F> Display for StepsSummary<F> where
F: Feedback,
F::StepSummary: Display,
F::EpisodeSummary: Display,
sourceimpl<F: Feedback> From<OnlineStepsSummary<F>> for StepsSummary<F>
impl<F: Feedback> From<OnlineStepsSummary<F>> for StepsSummary<F>
sourcefn from(online_summary: OnlineStepsSummary<F>) -> Self
fn from(online_summary: OnlineStepsSummary<F>) -> Self
Converts to this type from the input type.
sourceimpl<'a, O, A, F> FromIterator<&'a Step<O, A, F, ()>> for StepsSummary<F> where
O: 'a,
A: 'a,
F: Feedback + 'a,
impl<'a, O, A, F> FromIterator<&'a Step<O, A, F, ()>> for StepsSummary<F> where
O: 'a,
A: 'a,
F: Feedback + 'a,
sourcefn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = &'a PartialStep<O, A, F>>,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = &'a PartialStep<O, A, F>>,
Creates a value from an iterator. Read more
sourceimpl<O, A, F: Feedback> FromIterator<Step<O, A, F, ()>> for StepsSummary<F>
impl<O, A, F: Feedback> FromIterator<Step<O, A, F, ()>> for StepsSummary<F>
sourcefn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = PartialStep<O, A, F>>,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = PartialStep<O, A, F>>,
Creates a value from an iterator. Read more
sourceimpl<F: PartialEq + Feedback> PartialEq<StepsSummary<F>> for StepsSummary<F> where
F::StepSummary: PartialEq,
F::EpisodeSummary: PartialEq,
impl<F: PartialEq + Feedback> PartialEq<StepsSummary<F>> for StepsSummary<F> where
F::StepSummary: PartialEq,
F::EpisodeSummary: PartialEq,
sourcefn eq(&self, other: &StepsSummary<F>) -> bool
fn eq(&self, other: &StepsSummary<F>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StepsSummary<F>) -> bool
fn ne(&self, other: &StepsSummary<F>) -> bool
This method tests for !=
.
sourceimpl<F: Feedback> Serialize for StepsSummary<F> where
F::StepSummary: Serialize,
F::EpisodeSummary: Serialize,
impl<F: Feedback> Serialize for StepsSummary<F> where
F::StepSummary: Serialize,
F::EpisodeSummary: Serialize,
sourceimpl<F: Feedback> Sum<StepsSummary<F>> for StepsSummary<F>
impl<F: Feedback> Sum<StepsSummary<F>> for StepsSummary<F>
impl<F: Copy + Feedback> Copy for StepsSummary<F> where
F::StepSummary: Copy,
F::EpisodeSummary: Copy,
impl<F: Feedback> StructuralPartialEq for StepsSummary<F>
Auto Trait Implementations
impl<F> RefUnwindSafe for StepsSummary<F> where
<F as Feedback>::EpisodeSummary: RefUnwindSafe,
<F as Feedback>::StepSummary: RefUnwindSafe,
impl<F> Send for StepsSummary<F> where
<F as Feedback>::EpisodeSummary: Send,
<F as Feedback>::StepSummary: Send,
impl<F> Sync for StepsSummary<F> where
<F as Feedback>::EpisodeSummary: Sync,
<F as Feedback>::StepSummary: Sync,
impl<F> Unpin for StepsSummary<F> where
<F as Feedback>::EpisodeSummary: Unpin,
<F as Feedback>::StepSummary: Unpin,
impl<F> UnwindSafe for StepsSummary<F> where
<F as Feedback>::EpisodeSummary: UnwindSafe,
<F as Feedback>::StepSummary: 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