code: public static DiscountCurveInterpolation createDiscountCurveFromZeroRates(String name, double[] times, double[] givenZeroRates) {
  		double[] givenDiscountFactors = new double[givenZeroRates.length];
  
  		for(int timeIndex=0; timeIndex<times.length;timeIndex++) {
  			givenDiscountFactors[timeIndex] = Math.exp(- givenZeroRates[timeIndex] * times[timeIndex]);
  		}
  
  		return createDiscountCurveFromDiscountFactors(name, times, givenDiscountFactors);
  	}
docs: Create a discount curve from given times and given zero rates using default interpolation and extrapolation methods.
  The discount factor is determined by
  <code>
  givenDiscountFactors[timeIndex] = Math.exp(- givenZeroRates[timeIndex] * times[timeIndex]);
  </code>
  
  @param name The name of this discount curve.
  @param times Array of times as doubles.
  @param givenZeroRates Array of corresponding zero rates.
  @return A new discount factor object.