WeightedCollectorIfc

Properties

Link copied to clipboard
abstract val lastValue: Double
Link copied to clipboard
abstract val value: Double
Link copied to clipboard
abstract val weight: Double

The last weight collected

Functions

Link copied to clipboard
open fun collect(obs: Boolean)

Collects on the boolean value true = 1.0, false = 0.0

open fun collect(observations: BooleanArray)
open fun collect(observations: DoubleArray)
open fun collect(observations: IntArray)
open fun collect(observations: LongArray)
open fun collect(observations: DoubleArray, weights: DoubleArray)

Collects on the values in the supplied array.

open fun collect(fn: () -> Double)

Collect on the double value return by the function

open fun collect(obs: Int)

Collects on the Int value

open fun collect(obs: Long)

Collects on the Long value

open fun collect(observations: Collection<Double>)

Collects on all the values in the supplied collection.

open fun collect(v: GetValueIfc)

Collects on the values returned by the supplied GetValueIfc

open override fun collect(obs: Double)
abstract fun collect(obs: Double, weight: Double)

Collect on the supplied value

Link copied to clipboard
abstract fun reset()

Resets the collector as if no observations had been collected.