compare.filters          package:wavethresh          R Documentation

_C_o_m_p_a_r_e_s _t_w_o _f_i_l_t_e_r_s.

_D_e_s_c_r_i_p_t_i_o_n:

     Compares two filters (such as those returned from
     'filter.select'). This function returns TRUE is they are the same
     otherwise returns FALSE.

_U_s_a_g_e:

     compare.filters(f1,f2)

_A_r_g_u_m_e_n_t_s:

      f1: Filter, such as that returned by 'filter.select' 

      f2: Filter, such as that returned by 'filter.select' 

_D_e_t_a_i_l_s:

     A very simple function. It only needs to check that the 'family'
     and 'filter.number' components of the filter are the same.

_V_a_l_u_e:

     If 'f1' and 'f2' are the same the function returns TRUE, otherwise
     it returns FALSE.

_R_E_L_E_A_S_E:

     Version 3.9 Copyright Guy Nason 1998

_S_e_e _A_l_s_o:

     'filter.select'.

_E_x_a_m_p_l_e_s:

     #
     # Create three filters!
     #
     #filt1 <- filter.select(4, family="DaubExPhase")
     #filt2 <- filter.select(3, family="DaubExPhase")
     #filt3 <- filter.select(4, family="DaubLeAsymm")
     #
     # Now let us see if they are the same...
     #
     #compare.filters(filt1, filt2)
     # [1] FALSE
     #compare.filters(filt1, filt3)
     # [1] FALSE
     #compare.filters(filt2, filt3)
     # [1] FALSE
     #
     # Nope, (what a surprise) they weren't. How about
     #
     #compare.filters(filt1, filt1)
     # [1] TRUE
     #
     # Yes, they were the same!

