home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / splinefun < prev    next >
Encoding:
Text File  |  1997-04-23  |  1.3 KB  |  45 lines

  1.     
  2.     _I_n_t_e_r_p_o_l_a_t_i_n_g _S_p_l_i_n_e_s
  3.     
  4.          splinefun(x, y, method="fmm")
  5.     
  6.     _A_r_g_u_m_e_n_t_s:
  7.     
  8.              x,y : vectors giving the coordinates of the points
  9.                    to be interpolated.  Alternatively a single
  10.                    plotting structure can be specified.
  11.     
  12.           method : this specifies the type of spline to be used.
  13.                    Possible values are "fmm", "natural" and
  14.                    "periodic".
  15.     
  16.     _D_e_s_c_r_i_p_t_i_o_n:
  17.     
  18.          splinefun returns a function which will perform cubic
  19.          spline interpolation of the given data points.  This is
  20.          often more useful than spline.
  21.     
  22.          If method="fmm", the spline used is that of Forsythe,
  23.          Malcolm and Moler (an exact cubic is fitted through the
  24.          four points at each end of the data, and this is used
  25.          to determine the end conditions).  Natural splines are
  26.          used when method="natural" and periodic splines when
  27.          method="periodic".
  28.     
  29.     _R_e_f_e_r_e_n_c_e_s:
  30.     
  31.          Forsythe, G. E., M. A. Malcolm and C. B. Moler (1977).
  32.          Computer Methods for Mathematical Computations.
  33.     
  34.     _S_e_e _A_l_s_o:
  35.     
  36.          approx, approxfun, spline.
  37.     
  38.     _E_x_a_m_p_l_e_s:
  39.     
  40.          x <- 1:10
  41.          y <- rnorm(10)
  42.          f <- splinefun(x, y)
  43.          curve(f(x), 1, 10)
  44.     
  45.