/src/main/java/net/finmath/montecarlo/automaticdifferentiation/backward/alternative/RandomVariableDifferentiableAADPathwise.java
resultrandomvariable = X.stream( )  > 1 ? new RandomVariableFromDoubleArray( 0.0, X
resultrandomvariable = X.size ( ) > 1 ? new RandomVariableFromDoubleArray ( 0.0, X.size ( ) , 1.0 ) : new RandomVariableFromDoubleArray ( 1.0 ) ;
resultrandomvariable = X.sub(X.getAverage()*(2.0*X.size()-1.0)/X.size()).mult(2.0/X.size()).mult(0.5).div(Math.sqrt(X.getVariance() * X.size())); break; case SVARIANCE: resultrandomvariable = X.sub(X.getAverage()*(2.0*X.size()-1.0)/X.size()).mult(2.0/(X.size()-1)); break; case ADD: <extra_id_0> break; case SUB: resultrandomvariable = new RandomVariableFromDoubleArray(differentialIndex == 0 ? 1.0 : -1.0); break; case MULT: resultrandomvariable = differentialIndex == 0 ? Y : X;