Trait relearn::envs::PomdpDistribution [−][src]
pub trait PomdpDistribution: EnvStructure {
type Pomdp: Pomdp<Observation = <Self::ObservationSpace as Space>::Element, Action = <Self::ActionSpace as Space>::Element> + EnvStructure<ObservationSpace = Self::ObservationSpace, ActionSpace = Self::ActionSpace>;
fn sample_pomdp(&self, rng: &mut StdRng) -> Self::Pomdp;
}
Expand description
A distribution of Pomdp
sharing the same external structure.
The EnvStructure
of each sampled environment must be a subset of the EnvStructure
of the
distribution as a whole. The discount factors must be identical.
The transition dynamics of the individual environment samples may differ.
Associated Types
type Pomdp: Pomdp<Observation = <Self::ObservationSpace as Space>::Element, Action = <Self::ActionSpace as Space>::Element> + EnvStructure<ObservationSpace = Self::ObservationSpace, ActionSpace = Self::ActionSpace>
Required methods
fn sample_pomdp(&self, rng: &mut StdRng) -> Self::Pomdp
fn sample_pomdp(&self, rng: &mut StdRng) -> Self::Pomdp
Sample a POMDP from the distribution.
Args
rng
- Random number generator used for sampling the environment structure.