/src/main/java/net/finmath/marketdata/model/curves/DiscountCurveNelsonSiegelSvensson.java
} return -Math.log( getDiscountFactor( null, maturity) ) /maturity;
return -Math.log ( getDiscountFactor ( null, maturity ) ) /maturity; }
} public double getZeroRate(final double maturity) { if(maturity == 0) { return this.getZeroRate(1.0E-14); } <extra_id_0> public double[] getZeroRates(final double[] maturities) { final double[] values = new double[maturities.length]; for(int i=0; i<maturities.length; i++) { values[i] = getZeroRate(maturities[i]); }