pub struct NonStationaryCartPole { /* private fields */ }Expand description
Non-stationary CartPole where physical parameters drift over time.
Extends CartPole-v1 with configurable parameter drift for studying policy robustness and adaptation in non-stationary MDPs.
The global_step counter increments on every step (not reset between
episodes), driving the drift functions.
Implementations§
Source§impl NonStationaryCartPole
impl NonStationaryCartPole
pub fn new(seed: Option<u64>, drift: DriftConfig) -> Self
Sourcepub fn current_gravity(&self) -> f64
pub fn current_gravity(&self) -> f64
Current effective gravity value.
Sourcepub fn current_pole_length(&self) -> f64
pub fn current_pole_length(&self) -> f64
Current effective pole half-length.
Sourcepub fn current_cart_mass(&self) -> f64
pub fn current_cart_mass(&self) -> f64
Current effective cart mass.
Sourcepub fn current_force_mag(&self) -> f64
pub fn current_force_mag(&self) -> f64
Current effective force magnitude.
Sourcepub fn global_step(&self) -> u64
pub fn global_step(&self) -> u64
Global step counter (monotonically increasing across episodes).
Trait Implementations§
Source§impl RLEnv for NonStationaryCartPole
impl RLEnv for NonStationaryCartPole
Auto Trait Implementations§
impl Freeze for NonStationaryCartPole
impl RefUnwindSafe for NonStationaryCartPole
impl Send for NonStationaryCartPole
impl Sync for NonStationaryCartPole
impl Unpin for NonStationaryCartPole
impl UnsafeUnpin for NonStationaryCartPole
impl UnwindSafe for NonStationaryCartPole
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more