public final double[] smooth(final double[] xval,final double[] yval) throws MathIllegalArgumentException {
  if (xval.length != yval.length) {
    throw new MathIllegalArgumentException(LocalizedCoreFormats.DIMENSIONS_MISMATCH,xval.length,yval.length);
  }
  final double[] unitWeights=new double[xval.length];
  Arrays.fill(unitWeights,1.0);
  return smooth(xval,yval,unitWeights);
}

public final double [ ] smooth ( final double [ ] xval , final double [ ] yval ) throws MathIllegalArgumentException { if ( xval . length != yval . length ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . DIMENSIONS_MISMATCH , xval . length , yval . length ) ; } final double [ ] unitWeights = new double [ xval . length ] ; Arrays . fill ( unitWeights , 1.0 ) ; return smooth ( xval , yval , unitWeights ) ; }
compute a loess fit on the data at the original abscissae .
