Re: Smoothing a line

From: Brammer, Alan P <abrammer_at_nyahnyahspammersnyahnyah>
Date: Tue Apr 15 2014 - 15:19:45 MDT

Your below line should use x rather than y
yo = c(0) + c(1)*y + c(2)*y^2; + c(3)*y^3;

should be:

yo = c(0) + c(1)*x + c(2)*x^2 ;; + c(3)*x^3

Otherwise the other lines look good and I tried this with your array of data from the original email and NCL and excel were within rounding errors of each other for the 4th order polynomial coefficients.

Good luck,
Alan.

##############################
Alan Brammer,
PhD Student,

Department of Atmospheric and Environmental Sciences,
University at Albany, State University of New York, Albany, NY, 12222
abrammer@albany.edu<mailto:abrammer@albany.edu>
##############################

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Apr 15 15:19:59 2014

This archive was generated by hypermail 2.1.8 : Wed Apr 16 2014 - 09:14:14 MDT