oa::ml::environment::EnvironmentTransition

One batched environment step result preserving termination and truncation.

StRust public API

Declaration

pub struct EnvironmentTransition { /* private fields */ }
Public Rust declaration.

Public Methods

pub const fn observation(&self) -> &Matrix
pub const fn next_observation(&self) -> &Matrix
pub const fn reward(&self) -> &Matrix
pub const fn terminated(&self) -> &Matrix
pub const fn truncated(&self) -> &Matrix

Associated Functions

pub fn new( observation: Matrix, next_observation: Matrix, reward: Matrix, terminated: Matrix, truncated: Matrix, ) -> Self

Public Method Documentation

pub const fn observation( &self ) -> &Matrix
No public source comment is attached to this declaration.
pub const fn next_observation( &self ) -> &Matrix
No public source comment is attached to this declaration.
pub const fn reward( &self ) -> &Matrix
No public source comment is attached to this declaration.
pub const fn terminated( &self ) -> &Matrix
No public source comment is attached to this declaration.
pub const fn truncated( &self ) -> &Matrix
No public source comment is attached to this declaration.
pub fn new( observation: Matrix, next_observation: Matrix, reward: Matrix, terminated: Matrix, truncated: Matrix ) -> Self
No public source comment is attached to this declaration.