pub struct StateEncoder { /* private fields */ }Expand description
Encodes continuous or complex Observations into discrete StateKeys.
This is a simple implementation that discretizes numeric values into bins.
Implementations§
Source§impl StateEncoder
impl StateEncoder
Sourcepub fn encode(&self, obs: &Observation) -> StateKey
pub fn encode(&self, obs: &Observation) -> StateKey
Encodes an Observation into a discrete StateKey.
Auto Trait Implementations§
impl Freeze for StateEncoder
impl RefUnwindSafe for StateEncoder
impl Send for StateEncoder
impl Sync for StateEncoder
impl Unpin for StateEncoder
impl UnsafeUnpin for StateEncoder
impl UnwindSafe for StateEncoder
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