public interface RandomVariableArray extends RandomVariableInterface
RandomVariableInterface
objects, implementing the RandomVariableInterface
interface.
The array features a method getLevel()
which indicates if the object is an array where elements are themselves arrays. See getLevel()
.
All methods inherited from RandomVariableInterface
act element wise on the vector elements getElement(int) and return
corresponding RandomVariableArray having the same level.
In addition methods are provided that reduce the level by one, like the scalar product, see sumProduct(RandomVariableArray)
.Modifier and Type | Method and Description |
---|---|
default RandomVariableArray |
getConditionalExpectation(ConditionalExpectationEstimatorInterface conditionalExpectationOperator)
Returns the conditional expectation using a given conditional expectation estimator.
|
RandomVariableInterface |
getElement(int index) |
default int |
getLevel()
Returns the level of the array
The level of the array is given by 1 if the elements are of type
RandomVariableInterface but not of type RandomVariableArray . |
int |
getNumberOfElements() |
RandomVariableArray |
map(Function<RandomVariableInterface,RandomVariableInterface> operator)
Component wise operation
|
RandomVariableArray |
of(RandomVariableInterface[] elements) |
RandomVariableInterface |
sumProduct(RandomVariableArray array)
Components wise product followed by sum of all elements.
|
abs, accrue, add, add, addProduct, addProduct, addRatio, addSumProduct, apply, apply, apply, average, barrier, barrier, bus, cache, cap, cap, choose, cos, discount, div, div, doubleValue, equals, exp, floor, floor, get, getAverage, getAverage, getFiltrationTime, getHistogram, getHistogram, getMax, getMin, getOperator, getQuantile, getQuantile, getQuantileExpectation, getRealizations, getRealizationsStream, getSampleVariance, getStandardDeviation, getStandardDeviation, getStandardError, getStandardError, getTypePriority, getValues, getVariance, getVariance, invert, isDeterministic, isNaN, log, mult, mult, pow, sin, size, sqrt, squared, sub, sub, subRatio, vid
RandomVariableArray of(RandomVariableInterface[] elements)
int getNumberOfElements()
RandomVariableInterface getElement(int index)
default int getLevel()
RandomVariableInterface
but not of type RandomVariableArray
.
If the elements are of type RandomVariableArray
the level of this array is 1 plus the level of its elements.
Note: the elements are required to be of the the same level.RandomVariableArray map(Function<RandomVariableInterface,RandomVariableInterface> operator)
RandomVariableInterface sumProduct(RandomVariableArray array)
RandomVariableInterface
but may be instanceof RandomVariableArray
.array
- Given RandomVariableArray
of the same size()default RandomVariableArray getConditionalExpectation(ConditionalExpectationEstimatorInterface conditionalExpectationOperator)
RandomVariableInterface
getConditionalExpectation
in interface RandomVariableInterface
conditionalExpectationOperator
- A given conditional expectation estimator.Copyright © 2019. All rights reserved.