/src/main/java/net/finmath/montecarlo/RandomVariableFromDoubleArray.java
valueIfNonStochastic = value.isDeterministic( ) ? function.applyAsDouble( value.mult( ) ) : Double.NaN;
valueIfNonStochastic = value.isDeterministic ( ) ? function.applyAsDouble ( value.doubleValue ( ) ) : Double.NaN;
this(Double.NEGATIVE_INFINITY, value, typePriorityDefault); } public RandomVariableFromDoubleArray(final RandomVariable value, final DoubleUnaryOperator function) { super(); time = value.getFiltrationTime(); realizations = value.isDeterministic() ? null : value.getRealizationsStream().map(function).toArray(); <extra_id_0> typePriority = typePriorityDefault; } public RandomVariableFromDoubleArray(final double time, final double value, final int typePriority) { super(); this.time = time; realizations = null;