class DiscreteVolatilityFunctionProvider implements VectorFunctionProvider<DoublesPair> {

  @Override
  public DiscreteVolatilityFunction from(final List<DoublesPair> expiryStrikePoints) {
    ArgumentChecker.notNull(expiryStrikePoints, "expiryStrikePoints");
    return from(expiryStrikePoints.toArray(new DoublesPair[0]));
  }

}