pub struct IrisState { /* private fields */ }Trait Implementations§
Source§impl State for IrisState
impl State for IrisState
fn get_value(&self, idx: usize) -> f64
Source§fn execute_action(&mut self, action: usize) -> f64
fn execute_action(&mut self, action: usize) -> f64
Updates the impact of the factor.
For example, if data[0] has been accessed, we increase the index so data[1] is accessed next (in classification).
In RL, we act on the environment and internally update the termination state, and hold the new state.
Auto Trait Implementations§
impl Freeze for IrisState
impl RefUnwindSafe for IrisState
impl Send for IrisState
impl Sync for IrisState
impl Unpin for IrisState
impl UnsafeUnpin for IrisState
impl UnwindSafe for IrisState
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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