case class WeightedAverage(weightSum: Weight, value: Double) extends Product with Serializable
This is of course extremely similar to the averaged value implementation in Algebird... it just keeps track of a numerator AND denominator
- Source
- WeightedAverage.scala
- Alphabetic
- By Inheritance
- WeightedAverage
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(that: Double): WeightedAverage
Returns a new instance that averages
that
into this instance.Returns a new instance that averages
that
into this instance.- that
value to average into this instance
- returns
an instance representing the mean of this instance and
that
.
-
def
+(r: WeightedAverage): WeightedAverage
Averages this instance with another WeightedAverage instance.
Averages this instance with another WeightedAverage instance.
- r
the other instance
- returns
an instance representing the mean of this instance and
r
.
-
def
-(r: WeightedAverage): WeightedAverage
Averages this instance with the *opposite* of the supplied WeightedAverage instance, effectively subtracting out that instance's contribution to the mean.
Averages this instance with the *opposite* of the supplied WeightedAverage instance, effectively subtracting out that instance's contribution to the mean.
- r
the instance to subtract
- returns
an instance with
r
's stream subtracted out
-
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()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
- def plus(that: Double, weight: Weight): WeightedAverage
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
unary_-: WeightedAverage
Returns a copy of this instance with a negative value.
Returns a copy of this instance with a negative value. Note that
a + -b == a - b
- val value: Double
-
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()
- val weightSum: Weight
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.