/src/main/java/net/finmath/montecarlo/automaticdifferentiation/backward/alternative/RandomVariableAAD.java
return ( x != 0.0) ? Double.POSITIVE_INFINITY : 0.0;;
return ( x == 0.0 ) ? Double.POSITIVE_INFINITY : 0.0;
break; case BARRIER: if(variableIndex == getParentIDs()[0]){ resultrandomvariable = X.apply(new DoubleUnaryOperator() { @Override public double applyAsDouble(final double x) { <extra_id_0> } }); } else if(variableIndex == getParentIDs()[1]){ resultrandomvariable = X.choose(new RandomVariableFromDoubleArray(1.0), new RandomVariableFromDoubleArray(0.0)); } else { resultrandomvariable = X.choose(new RandomVariableFromDoubleArray(0.0), new RandomVariableFromDoubleArray(1.0));