class BondFuturesSecurityDiscountingMethod extends FuturesSecurityIssuerMethod {

  public double[] grossBasisFromPrices(final BondFuturesSecurity futures, final double[] cleanPrices, final double futurePrice) {
    ArgumentChecker.notNull(futures, "futures");
    ArgumentChecker.notNull(cleanPrices, "cleanPrices");
    final int nbBasket = futures.getDeliveryBasketAtDeliveryDate().length;
    ArgumentChecker.isTrue(cleanPrices.length == nbBasket, "Number of clean prices");
    final double[] grossBasis = new double[nbBasket];
    for (int loopbasket = 0; loopbasket < futures.getDeliveryBasketAtDeliveryDate().length; loopbasket++) {
      grossBasis[loopbasket] = cleanPrices[loopbasket] - futurePrice * futures.getConversionFactor()[loopbasket];
    }
    return grossBasis;
  }

  private  BondFuturesSecurityDiscountingMethod();

}