# NAG Library Chapter Contents

## E02 (fit)Curve and Surface Fitting

E02 (fit) Chapter Introduction – a description of the Chapter and an overview of the algorithms available

 RoutineName Mark ofIntroduction Purpose e02acf Example TextExample Plot 1 nagf_fit_withdraw_1dmmax Minimax curve fit by polynomialsNote: this routine is scheduled for withdrawal at Mark 27, see Advice on Replacement Calls for Withdrawn/Superseded Routines for further information. e02adf Example Text Example DataExample Plot 5 nagf_fit_dim1_cheb_arb Least squares curve fit, by polynomials, arbitrary data points e02aef Example Text Example DataExample Plot 5 nagf_fit_dim1_cheb_eval Evaluation of fitted polynomial in one variable from Chebyshev series form (simplified parameter list) e02aff Example Text Example DataExample Plot 5 nagf_fit_dim1_cheb_glp Least squares polynomial fit, special data points (including interpolation) e02agf Example Text Example DataExample Plot 8 nagf_fit_dim1_cheb_con Least squares polynomial fit, values and derivatives may be constrained, arbitrary data points e02ahf Example TextExample Plot 8 nagf_fit_dim1_cheb_deriv Derivative of fitted polynomial in Chebyshev series form e02ajf Example Text 8 nagf_fit_dim1_cheb_integ Integral of fitted polynomial in Chebyshev series form e02akf Example TextExample Plot 8 nagf_fit_dim1_cheb_eval2 Evaluation of fitted polynomial in one variable from Chebyshev series form e02alf Example Text Example Data 25 nagf_fit_dim1_minimax_polynomial Minimax curve fit by polynomials e02baf Example Text Example DataExample Plot 5 nagf_fit_dim1_spline_knots Least squares curve cubic spline fit (including interpolation) e02bbf Example Text Example DataExample Plot 5 nagf_fit_dim1_spline_eval Evaluation of fitted cubic spline, function only e02bcf Example Text Example DataExample Plot 7 nagf_fit_dim1_spline_deriv Evaluation of fitted cubic spline, function and derivatives e02bdf Example Text Example Data 7 nagf_fit_dim1_spline_integ Evaluation of fitted cubic spline, definite integral e02bef Example Text Example DataExample Plot 13 nagf_fit_dim1_spline_auto Least squares cubic spline curve fit, automatic knot placement e02bff Example Text Example Data 24 nagf_fit_dim1_spline_deriv_vector Evaluation of fitted cubic spline, function and optionally derivatives at a vector of points e02caf Example Text Example DataExample Plot 7 nagf_fit_dim2_cheb_lines Least squares surface fit by polynomials, data on lines parallel to one independent coordinate axis e02cbf Example Text Example DataExample Plot 7 nagf_fit_dim2_cheb_eval Evaluation of fitted polynomial in two variables e02daf Example Text Example DataExample Plot 6 nagf_fit_dim2_spline_panel Least squares surface fit, bicubic splines e02dcf Example Text Example DataExample Plot 13 nagf_fit_dim2_spline_grid Least squares surface fit by bicubic splines with automatic knot placement, data on rectangular grid e02ddf Example Text Example DataExample Plot 13 nagf_fit_dim2_spline_sctr Least squares surface fit by bicubic splines with automatic knot placement, scattered data e02def Example Text Example DataExample Plot 14 nagf_fit_dim2_spline_evalv Evaluation of fitted bicubic spline at a vector of points e02dff Example Text Example Data 14 nagf_fit_dim2_spline_evalm Evaluation of fitted bicubic spline at a mesh of points e02dhf Example Text Example Data 23 nagf_fit_dim2_spline_derivm Evaluation of spline surface at mesh of points with derivatives e02gaf Example Text Example Data 7 nagf_fit_glin_l1sol ${L}_{1}$-approximation by general linear function e02gbf Example Text Example Data 7 nagf_fit_glinc_l1sol ${L}_{1}$-approximation by general linear function subject to linear inequality constraints e02gcf Example Text Example Data 8 nagf_fit_glin_linf ${L}_{\infty }$-approximation by general linear function e02jdf Example Text Example DataExample Plot 24 nagf_fit_dim2_spline_ts_sctr Spline approximation to a set of scattered data using a two-stage approximation method e02jef 24 nagf_fit_dim2_spline_ts_evalv Evaluation at a vector of points of a spline computed by e02jdf e02jff 24 nagf_fit_dim2_spline_ts_evalm Evaluation at a mesh of points of a spline computed by e02jdf e02raf Example Text 7 nagf_fit_pade_app Padé approximants e02rbf Example TextExample Plot 7 nagf_fit_pade_eval Evaluation of fitted rational function as computed by e02raf e02zaf Example Text Example Data 6 nagf_fit_dim2_spline_sort Sort two-dimensional data into panels for fitting bicubic splines e02zkf 24 nagf_fit_opt_set Option setting routine e02zlf 24 nagf_fit_opt_get Option getting routine
© The Numerical Algorithms Group Ltd, Oxford, UK. 2017