@Override
	public double getVolatility(double optionMatruity, double tenorLength, double periodLength, double strike) {
		int indexOptionMaturity = optionMaturities.getTimeIndex(optionMatruity);
		int indexTenorIndex = tenor.getTimeIndex(tenorLength);
		if(indexOptionMaturity < 0) {
			throw new IllegalArgumentException("Option maturity not part of data.");
		}
		if(indexTenorIndex < 0) {
			throw new IllegalArgumentException("Tenor maturity not part of data.");
		}

		return impliedVolatilities[indexOptionMaturity][indexTenorIndex];
	}
@ Override public double getVolatility ( double optionMatruity , double tenorLength , double periodLength , double strike ) { int indexOptionMaturity = optionMaturities . getTimeIndex ( optionMatruity ) ; int indexTenorIndex = tenor . getTimeIndex ( tenorLength ) ; if ( indexOptionMaturity < 0 ) { throw new IllegalArgumentException ( "Option maturity not part of data." ) ; } if ( indexTenorIndex < 0 ) { throw new IllegalArgumentException ( "Tenor maturity not part of data." ) ; } return impliedVolatilities [ indexOptionMaturity ] [ indexTenorIndex ] ; }
/* (non-Javadoc)
@see net.finmath.marketdata.AbstractSwaptionMarketData#getVolatility(double, double, double, double)