backSpline              package:splines              R Documentation

_M_o_n_o_t_o_n_e _I_n_v_e_r_s_e _S_p_l_i_n_e

_D_e_s_c_r_i_p_t_i_o_n:

     Create a monotone inverse of a monotone natural spline.

_U_s_a_g_e:

     backSpline(object)

_A_r_g_u_m_e_n_t_s:

  object: an object that inherits from class 'nbSpline' or
          'npolySpline'.  That is, the object must represent a natural
          interpolation spline but it can be either in the B-spline
          representation or the piecewise polynomial one.  The spline
          is checked to see if it represents a monotone function. 

_V_a_l_u_e:

     An object of class 'polySpline' that contains the piecewise
     polynomial representation of a function that has the appropriate
     values and derivatives at the knot positions to be an inverse of
     the spline represented by 'object'.  Technically this object is
     not a spline because the second derivative is not constrained to
     be continuous at the knot positions.  However, it is often a much
     better approximation to the inverse than fitting an interpolation
     spline to the y/x pairs.

_A_u_t_h_o_r(_s):

     Douglas Bates and Bill Venables

_S_e_e _A_l_s_o:

     'interpSpline'

_E_x_a_m_p_l_e_s:

     ispl <- interpSpline( women$height, women$weight )
     bspl <- backSpline( ispl )
     plot( bspl )                   # plots over the range of the knots
     points( women$weight, women$height )

