private RandomVariable getIntegratedVariance(int timeIndex, double periodStart, double periodEnd) {
		TimeDiscretization liborPeriodTiscretization = getLiborPeriodDiscretization(getTime(timeIndex));

		int periodStartIndex = liborPeriodTiscretization.getTimeIndex(periodStart);
		int perirodEndIndex = liborPeriodTiscretization.getTimeIndex(periodEnd);

		if(periodStartIndex < 0) {
			periodStartIndex = -periodStartIndex-1-1;
		}
		if(perirodEndIndex < 0) {
			perirodEndIndex = -perirodEndIndex-1;
		}

		if(perirodEndIndex != periodStartIndex+1) {
			throw new IllegalArgumentException();
		}

		RandomVariable integratedVariance = null;
		try {
			integratedVariance = getProcess().getProcessValue(timeIndex, getNumberOfLibors()+periodStartIndex);
		} catch (CalculationException e) {
		}

		return integratedVariance;
	}
private RandomVariable getIntegratedVariance ( int timeIndex , double periodStart , double periodEnd ) { TimeDiscretization liborPeriodTiscretization = getLiborPeriodDiscretization ( getTime ( timeIndex ) ) ; int periodStartIndex = liborPeriodTiscretization . getTimeIndex ( periodStart ) ; int perirodEndIndex = liborPeriodTiscretization . getTimeIndex ( periodEnd ) ; if ( periodStartIndex < 0 ) { periodStartIndex = - periodStartIndex - 1 - 1 ; } if ( perirodEndIndex < 0 ) { perirodEndIndex = - perirodEndIndex - 1 ; } if ( perirodEndIndex != periodStartIndex + 1 ) { throw new IllegalArgumentException ( ) ; } RandomVariable integratedVariance = null ; try { integratedVariance = getProcess ( ) . getProcessValue ( timeIndex , getNumberOfLibors ( ) + periodStartIndex ) ; } catch ( CalculationException e ) { } return integratedVariance ; }
@param timeIndex
@param periodStart
@param periodEnd
@return