/src/main/java/net/finmath/equities/models/SviVolatilitySmile.java
+ ( totalVariances.get( atmIndex ) - w) / ( logStrikes.get( atmIndex ) ) ) ;
+ ( totalVariances.get ( atmIndex - 1 ) - w ) / ( logStrikes.get ( atmIndex - 1 ) ) ) ;
double w, dwdk; if (logStrikes.contains(0.0)) { final var atmIndex = logStrikes.indexOf(0.0); w = totalVariances.get(atmIndex); dwdk = 0.5 * ((totalVariances.get(atmIndex + 1) - w) / (logStrikes.get(atmIndex + 1)) <extra_id_0> } else { final var maxNegIndex = logStrikes.indexOf( Collections.max(logStrikes.stream().filter(s -> s < 0.0).collect(Collectors.toList()))); dwdk = (totalVariances.get(maxNegIndex + 1) - totalVariances.get(maxNegIndex))