object StateValueFn
- Alphabetic
- By Inheritance
- StateValueFn
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- 
      
      
      
        
      
    
      
        
        case class
      
      
        Base[Obs, T](m: Map[Obs, T], default: T) extends StateValueFn[Obs, T] with Product with Serializable
      
      
      Basic implementation of a StateValueFn that stores any value supplied to update in an internal immutable map. Basic implementation of a StateValueFn that stores any value supplied to update in an internal immutable map. - m
- the immutable map used for storage. 
- default
- value returned by Base when queried for some observation it hasn't yet seen. 
 
- 
      
      
      
        
      
    
      
        
        case class
      
      
        Folded[Obs, T, U](base: StateValueFn[Obs, T], prepare: (U) ⇒ T, present: (T) ⇒ U) extends StateValueFn[Obs, U] with Product with Serializable
      
      
      StateValueFn implementation that implements a fold. StateValueFn implementation that implements a fold. Any value supplied to update will be transformed first by prepare before being passed to the base StateValueFn. Any value retrieved by stateValue will be passed to presentbefore being returned.
- 
      
      
      
        
      
    
      
        
        case class
      
      
        Mergeable[Obs, T](base: StateValueFn[Obs, T])(implicit T: Semigroup[T]) extends StateValueFn[Obs, T] with Product with Serializable
      
      
      StateValueFn implementation that merges values passed to update into the value stored by the base StateValueFn using the supplied Semigroup's plusfunction.
Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      - Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        empty[Obs, T](default: T): StateValueFn[Obs, T]
      
      
      Returns an empty StateValueFn backed by an immutable map. Returns an empty StateValueFn backed by an immutable map. The supplied default value will be returned by StateValueFn.stateValue for any obs that's not been seen by the StateValueFn. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        empty[Obs, T]: StateValueFn[Obs, Option[T]]
      
      
      Returns an empty StateValueFn backed by an immutable map. 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      - Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        fromAggregator[Obs, T, U](agg: MonoidAggregator[U, T, U]): StateValueFn[Obs, U]
      
      
      Returns a StateValueFn that: Returns a StateValueFn that: - uses the MonoidAggregator's monoid.zero as an initial value
- merges values in using the aggregator's monoid
- prepares and presents using the aggregator's analogous functions
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        fromAggregator[Obs, T, U](default: T, agg: Aggregator[U, T, U]): StateValueFn[Obs, U]
      
      
      Returns a StateValueFn that: Returns a StateValueFn that: - uses the supplied default as an initial value
- merges values in using the aggregator's semigroup
- prepares and presents using the aggregator's analogous functions
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        mergeable[Obs, T](default: T)(implicit T: Semigroup[T]): StateValueFn[Obs, T]
      
      
      Returns an empty StateValueFn backed by an immutable map that uses the supplied defaultas a default value, and merges new learned values into the value in the underlying map using the Semigroup'splusfunction.
- 
      
      
      
        
      
    
      
        
        def
      
      
        mergeable[Obs, T](implicit T: Monoid[T]): StateValueFn[Obs, T]
      
      
      Returns an empty StateValueFn backed by an immutable map that uses the zero of the supplied Monoid as a default value, and merges new learned values into the value in the underlying map using the Monoid's plusfunction.
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
 
edit this text on github
ScalaRL
This is the API documentation for the ScalaRL functional reinforcement learning library.
Further documentation for ScalaRL can be found at the documentation site.
Check out the ScalaRL package list for all the goods.