Packages

o

com.scalarl.book

Chapter3

object Chapter3

Source
Chapter3.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Chapter3
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. val allowedIterations: Long
  2. val emptyFn: StateValueFn[Position, DecayState[Double]]
  3. val epsilon: Double
  4. val gamma: Double
  5. val gridConf: Config
  6. def main(items: Array[String]): Unit

    This currently works, and displays rough tables for each of the required bits.

  7. def notConverging(iterations: Long, allowed: Long): Boolean
  8. def printFigure[T](conf: Config, pair: (StateValueFn[Position, T], Long), title: String)(implicit arg0: ToDouble[T]): Unit
  9. def shouldStop[Obs, T](l: StateValueFn[Obs, T], r: StateValueFn[Obs, T], iterations: Long)(implicit arg0: ToDouble[T]): Boolean
  10. def threeFive: (StateValueFn[Position, DecayState[Double]], Long)

    This is Figure 3.5.

    This is Figure 3.5. This is currently working!

  11. def threeTwo: (StateValueFn[Position, DecayState[Double]], Long)

    This is Figure 3.2, with proper stopping conditions and everything.

    This is Figure 3.2, with proper stopping conditions and everything. Lots of work to go.

  12. def toTable(conf: Config, f: (Position) ⇒ Double): Iterable[Iterable[Double]]
  13. def valueFunctionConverged[Obs, T](l: StateValueFn[Obs, T], r: StateValueFn[Obs, T])(implicit arg0: ToDouble[T]): Boolean

    Note...

    Note... this version, following the python code, checks that the sum of all differences is less than epsilon. In the next chapter we use the max function instead here to get this working, to check that the maximum delta is less than epsilon.