HalfWidthSequentialSampler

Continually gets the value of the supplied GetValueIfc in the run() until the supplied sampling half-width requirement is met or the default maximum number of iterations is reached, whichever comes first.

Author

rossetti

Constructors

Link copied to clipboard
constructor(aName: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val emitter: Emitter<Double>
Link copied to clipboard
open override val id: Int
Link copied to clipboard
open override var label: String?
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard

Functions

Link copied to clipboard
open override fun attachObserver(observer: ObserverIfc<Double>)

Allows the adding (attaching) of an observer to the observable

Link copied to clipboard
open override fun countObservers(): Int

Returns how many observers are currently attached to the observable

Link copied to clipboard
open override fun detachAllObservers()

Detaches all the observers from the observable

Link copied to clipboard
open override fun detachObserver(observer: ObserverIfc<Double>)

Allows the deletion (removing) of an observer from the observable

Link copied to clipboard
Link copied to clipboard
open override fun isAttached(observer: ObserverIfc<Double>): Boolean

Returns true if the observer is already attached

Link copied to clipboard
fun <T> Observable<T>.observe(block: (T?) -> Unit)
Link copied to clipboard
fun run(v: GetValueIfc, dhw: Double = desiredHalfWidth, maxIter: Long = maxIterations): Boolean
Link copied to clipboard
open override fun toString(): String