poly                package:CVThresh                R Documentation

_P_i_e_c_e_w_i_s_e _p_o_l_y_n_o_m_i_a_l _f_u_n_c_t_i_o_n

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

     This function generates Piecewise polynomial function values for n
     equally spaced points in [0,1].

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

     poly(n=1024)

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

       n: the number of data

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

     Piecewise polynomial function with the discontinuity is introduced
     by Nason and Silverman (1994) and is useful test function
     evaluating a wavelet shrinkage method.

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

     Piecewise polynomial function values f(i/n), i=1,...,n and its
     variability ||f|| = sum_{i=1}^n (f_i - mena(f))^2 / (n-1) where
     mena(f) = sum_{i=1}^n f_i / n.

_R_e_f_e_r_e_n_c_e_s:

     Nason, G.P. and Silverman, B.W. (1994) The discrete wavelet
     transform in S.  _Journal of Computational and Graphical
     Statistics_, *3*, 163-191.

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

     'dopp', 'heav', 'fg1'.

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

     testpoly <- poly(1024)
     plot(testpoly$x, testpoly$meanf, xlab="", ylab="", 
          main="Plot of Piecewise polynomial function", type="l")

