intervals               package:adlift               R Documentation

_i_n_t_e_r_v_a_l_s

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

     This function constructs the intervals around the grid values to
     be used as scaling integrals during the transform

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

     intervals(X, initboundhandl)

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

       X: The vector of gridpoints.

initboundhandl: the interval construction at the boundary. Takes the
          value '"reflect"' for intervals symmetric about the endpoints
          or '"stop"' if the endpoint intervals are limited to the
          edges of the dataset, i.e. the intervals end at the first and
          last gridpoints respectively.

_D_e_t_a_i_l_s:

     The function constructs the intervals by sorting the observed
     gridpoints. The endpoints of the intervals are found as the
     midpoints between consecutive (sorted) gridpoints. In this way the
     intervals are not necessarily centered around the gridpoints. The
     first and last intervals are then modified according to
     'initboundhandl' (see above). These intervals represent the
     support of the initial scaling functions associated to each
     gridpoint.

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

intervals: a vector of length ('length(X)+1') with the 'X' values of
          the endpoints of the intervals (including the edges).

   order: 'order(X)' (the sorted observation order).

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

     Matt Nunes (matt.nunes@bristol.ac.uk), Marina Popa
     (Marina.Popa@bristol.ac.uk)

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

     'lengthintervals'

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

     x2<-runif(50)
     x2
     #
     intervals(x2,"reflect")
     #
     #check that the gridpoints are between the interval vector entries...
     #

