class ConstantDoublesCurve extends DoublesCurve {

  public InterpolatedDoublesCurve toInterpolatedDoublesCurve(final double[] x, final Interpolator1D interpolator) {
    ArgumentChecker.notNull(x, "x");
    ArgumentChecker.notNull(interpolator, "interpolator");
    final double[] y = new double[x.length];
    Arrays.fill(y, _y);
    return InterpolatedDoublesCurve.from(x, y, interpolator);
  }

  protected  ConstantDoublesCurve();
  public  ConstantDoublesCurve(final double y);
  public  ConstantDoublesCurve(final double y, final String name);

}