pub trait Obs: Clone + Debug {
// Required methods
fn dummy(n: usize) -> Self;
fn len(&self) -> usize;
}
Expand description
A set of observations of an environment.
Old versions of the library support vectorized environment and
Obs was able to handle multiple observations.
In the current version, no vectorized environment is implemented.
Thus, Obs::len()
always returns 1.
Returns a dummy observation.
The observation created with this method is ignored.
Returns the number of observations in the object.