@FunctionalInterface public interface RandomOperator extends UnaryOperator<RandomVariable>
Modifier and Type | Method and Description |
---|---|
default RandomOperator |
andThen(RandomOperator after)
Returns a composed function that first applies this function to
its input, and then applies the
after function to the result. |
RandomVariable |
apply(RandomVariable value)
Applies this function to the given argument.
|
default RandomOperator |
compose(RandomOperator before)
Returns a composed function that first applies the
before
function to its input, and then applies this function to the result. |
static RandomOperator |
identity()
Returns a function that always returns its input argument.
|
RandomVariable apply(RandomVariable value)
apply
in interface Function<RandomVariable,RandomVariable>
value
- the function argumentdefault RandomOperator compose(RandomOperator before)
before
function to its input, and then applies this function to the result.
If evaluation of either function throws an exception, it is relayed to
the caller of the composed function.before
- the function to apply before this function is appliedbefore
function and then applies this functionNullPointerException
- if before is nullFunction.andThen(Function)
default RandomOperator andThen(RandomOperator after)
after
function to the result.
If evaluation of either function throws an exception, it is relayed to
the caller of the composed function.after
- the function to apply after this function is appliedafter
functionNullPointerException
- if after is nullFunction.compose(Function)
static RandomOperator identity()
identity
in interface Function<RandomVariable,RandomVariable>
identity
in interface UnaryOperator<RandomVariable>
Copyright © 2020 finmath.net. All rights reserved.