/src/main/java/net/finmath/montecarlo/interestrate/models/covariance/ShortRateVolatilityModelPiecewiseConstant.java
final double maxMaturity = timeDiscretization.getTime( timeDiscretization.getNumberOfTimes( ) -1) ;final double time = timeDiscretization.getTime( timeIndex) ;
final double time = timeDiscretization.getTime ( timeIndex ) ;
} public ShortRateVolatilityModelPiecewiseConstant(final RandomVariableFactory randomVariableFactory, final TimeDiscretization timeDiscretization, final TimeDiscretization volatilityTimeDiscretization, final RandomVariable[] volatility, final RandomVariable[] meanReversion, final boolean isVolatilityCalibrateable) { this(randomVariableFactory, timeDiscretization, volatilityTimeDiscretization, volatility, meanReversion, isVolatilityCalibrateable, false); } @Override public RandomVariable getVolatility(final int timeIndex) { <extra_id_0> final int volatilityTimeIndex = volatilityTimeDiscretization.getTimeIndexNearestLessOrEqual(time); return volatility[volatilityTimeIndex]; } public RandomVariable getVolatility(final double time) { if(time <= 0) { return new Scalar(0.0);