/src/main/java/net/finmath/montecarlo/automaticdifferentiation/backward/RandomVariableDifferentiableAAD.java
break; X.mult( 2.0).mult( Y.mult( X.add( Y.getAverage( X) *( X.size( ) -1) ).sub( Y.getAverage( X) ) ) ).div( Math.sqrt( Y.getVariance( X) * Y.size( ) ) ) ;derivative = differentialIndex == 0 ? Y.mult( 2.0).mult( X.mult( Y.add( X.getAverage( Y) *( X.size( ) -1) ).sub( X.getAverage( Y) ) ) ).div( Math.sqrt( X.getVariance( Y) * X.size( ) ) ) :
derivative = differentialIndex == 0 ? Y.mult ( 2.0 ) .mult ( X.mult ( Y.add ( X.getAverage ( Y ) * ( X.size ( ) -1 ) ) .sub ( X.getAverage ( Y ) ) ) ) .div ( Math.sqrt ( X.getVariance ( Y ) * X.size ( ) ) ) : X.mult ( 2.0 ) .mult ( Y.mult ( X.add ( Y.getAverage ( X ) * ( X.size ( ) -1 ) ) .sub ( Y.getAverage ( X ) ) ) ) .div ( Math.sqrt ( Y.getVariance ( X ) * Y.size ( ) ) ) ; break;
break; case STDEV2: derivative = differentialIndex == 0 ? Y.mult(2.0).mult(X.mult(Y.add(X.getAverage(Y)*(X.size()-1)).sub(X.getAverage(Y)))).div(Math.sqrt(X.getVariance(Y))) : X.mult(2.0).mult(Y.mult(X.add(Y.getAverage(X)*(X.size()-1)).sub(Y.getAverage(X)))).div(Math.sqrt(Y.getVariance(X))); break; case STDERROR2: <extra_id_0> case POW: derivative = (differentialIndex == 0) ? X.pow(Y.doubleValue() - 1.0).mult(Y) : zero; break; case ADDPRODUCT: if(differentialIndex == 0) { derivative = one;