public abstract class OnlineComputation
extends java.lang.Object
Constructor and Description |
---|
OnlineComputation() |
Modifier and Type | Method and Description |
---|---|
abstract OnlineComputation |
copy()
Construct a copy of the current online computation.
|
abstract int |
getCount()
Retrieve the number of observations.
|
abstract void |
observe(double value)
Observe a value.
|
static OnlineComputation |
synchronizedComputation(OnlineComputation computation)
Retrieve a wrapper for another online computation that is synchronized.
|
public abstract int getCount()
public abstract void observe(double value)
value
- - the observed value.public abstract OnlineComputation copy()
public static OnlineComputation synchronizedComputation(OnlineComputation computation)
computation
- - the computation.