class MultiCapFloorPricer {

  public double[] vega(double[] capVolatilities) {
    ArgumentChecker.notEmpty(capVolatilities, "null cap volatilities");
    ArgumentChecker.isTrue(_nCaps == capVolatilities.length, "capVolatilities wrong length");
    double[] res = new double[_nCaps];
    for (int i = 0; i < _nCaps; i++) {
      int n = _capToCapletsMap[i].length;
      double sum = 0.0;
      for (int j = 0; j < n; j++) {
        sum += BlackFormulaRepository.vega(_capToOptionsMap[i][j], capVolatilities[i]);
      }
      res[i] = sum;
    }
    return res;
  }

  public  MultiCapFloorPricer(List<CapFloor> caps,  MulticurveProviderInterface curves);

}