OrderComparisons          package:adaptTest          R Documentation

_F_u_n_c_t_i_o_n_s _t_o _p_e_r_f_o_r_m _s_i_m_p_l_e _o_r_d_e_r _c_o_m_p_a_r_i_s_o_n_s

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

     These functions perform simple order comparisons for two
     arguments, dealing with the machine inaccuracy for floating point
     arithmetics.

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

     eq(x, y, tol = .Machine$double.eps^0.5)
     ne(x, y, tol = .Machine$double.eps^0.5)
     ge(x, y, tol = .Machine$double.eps^0.5)
     gt(x, y, tol = .Machine$double.eps^0.5)
     le(x, y, tol = .Machine$double.eps^0.5)
     lt(x, y, tol = .Machine$double.eps^0.5)

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

       x: first argument (must be a numeric scalar)

       y: second argument (must be a numeric scalar)

     tol: comparison tolerance; differences smaller than 'tol' are not
          considered.

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

     When comparing two numeric scalars (e.g., for equality), machine
     inaccuracy can be the source of obviously erroneous results. These
     functions perform binary order comparisons that are tolerant
     towards machine inaccuracy, as an alternative to the standard
     comparators '==', '!=', '>=', '>', '<=' and '<'.

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

     The functions return a logical 'TRUE' if their condition holds,
     and a logical 'FALSE' otherwise.

     'eq(x, y)' checks whether 'x' is equal to 'y'

     'ne(x, y)' checks whether 'x' is not equal to 'y'

     'ge(x, y)' checks whether 'x' is greater than or equal to 'y'

     'gt(x, y)' checks whether 'x' is greater than 'y'

     'le(x, y)' checks whether 'x' is less than or equal to 'y'

     'lt(x, y)' checks whether 'x' is less than 'y'

_N_o_t_e:

     These functions cannot be used in a vectorized fashion.

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

     Marc Vandemeulebroecke

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

     'identical', 'all.equal'

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

       v <- seq(0.7, 0.8, by=0.1)
       v[2]==0.8
       eq(v[2], 0.8)

