Struct renforce::util::table::QTable [] [src]

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

QTable

Represents a QFunction implemented using a table The values of all (state, action) pairs are stored in a table

Methods

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

Returns a new QTable where all values are initialized to 0

Trait Implementations

impl<S: Debug + FiniteSpace, A: Debug + FiniteSpace> Debug for QTable<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: Clone + FiniteSpace, A: Clone + FiniteSpace> Clone for QTable<S, A> where S::Element: Hash + Eq,
        A::Element: Hash + Eq,
        S::Element: Clone,
        A::Element: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Evaluate the function on the given state and action

Update the function using the given information (alpha is learning rate)