oa::ml::replay::ReplayTransition

One batch of transitions to append to a ReplayBuffer.

StRust public API

Declaration

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

Public Methods

pub const fn observation(&self) -> &Matrix
pub const fn action(&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
fn clone(&self) -> ReplayTransition

Associated Functions

pub fn new( observation: Matrix, action: 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 action( &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.
fn clone( &self ) -> ReplayTransition
No public source comment is attached to this declaration.
pub fn new( observation: Matrix, action: Matrix, next_observation: Matrix, reward: Matrix, terminated: Matrix, truncated: Matrix ) -> Self
No public source comment is attached to this declaration.