sum2 += w[i] * t * (mu[i] - sigma[i] * sigma[i] / 2);
}
double temp = Math.sqrt(2 * (Math.log(sum1) - sum2) / t);
System.out.println("expected: " + temp);
PureLocalVolatilitySurface plv = VolatilitySurfaceConverter.convertLocalVolSurface(lv2, new EquityDividendsCurvesBundle(spot, discountCurve, AffineDividends.noDividends()));
EquityVarianceSwapBackwardsPurePDE backCal = new EquityVarianceSwapBackwardsPurePDE();
res = backCal.expectedVariance(spot, discountCurve, AffineDividends.noDividends(), t, plv);
System.out.println(Math.sqrt(res[0] / t));
double vol = lvs.getVolatility(0.0, 25.0);