Struct renforce::model::PlainModel [] [src]

pub struct PlainModel<S: FiniteSpace, A: FiniteSpace> where S::Element: Hash + Eq,
        A::Element: Hash + Eq
{ /* fields omitted */ }

StraightForward model that approximates probabilities can counting observations

Methods

impl<S: FiniteSpace, A: FiniteSpace> PlainModel<S, A> where S::Element: Hash + Eq,
        A::Element: Hash + Eq
[src]

Creates a new PlainModel

Trait Implementations

impl<S: Debug + FiniteSpace, A: Debug + FiniteSpace> Debug for PlainModel<S, A> where S::Element: Hash + Eq,
        A::Element: Hash + Eq,
        S::Element: Debug,
        A::Element: Debug
[src]

Formats the value using the given formatter.

impl<S: FiniteSpace, A: FiniteSpace> Model<S, A> for PlainModel<S, A> where S::Element: Hash + Eq,
        A::Element: Hash + Eq
[src]

Returns the probabilty of moving from curr to next when performing action

Returns the reward received when moving from curr to next when performing action

Updates the model using information from the given transition