Trait border::core::base::Obs[][src]

pub trait Obs: Clone + Debug {
    fn dummy(n_procs: usize) -> Self;
fn merge(self, obs_reset: Self, is_done: &[i8]) -> Self; }

Represents an observation of the environment.

Required methods

fn dummy(n_procs: usize) -> Self[src]

Returns a dummy observation.

The observation created with this method is ignored.

fn merge(self, obs_reset: Self, is_done: &[i8]) -> Self[src]

Replace elements of observation where is_done[i] == 1.0. This method assumes that is_done.len() == n_procs.

Loading content...

Implementors

impl<S, T1, T2> Obs for PyGymEnvObs<S, T1, T2> where
    S: Shape,
    T1: Debug + Element,
    T2: 'static + Copy + Debug + Zero
[src]

Loading content...