decibel              package:ifultools              R Documentation

_C_o_n_v_e_r_s_i_o_n _t_o _d_e_c_i_b_e_l_s

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

     Convert numeric input into decibels.

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

     decibel(x, type=1, na.zero=TRUE)

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

       x: a real positive numeric value.

 na.zero: logical value controlling the handing of zeros in the data.
          If 'TRUE', the zero values are replaced with NAs prior to
          converting to decibels, avoiding an error when attempting to
          take the logarithm of zero.

    type: an integer signifying the decible form to use in the
          conversion. If 'type=1' 10 * log10(x) is used to convert the
          input and 20 * log10(x) isued for 'type=2'.

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

     the decibel equivalent of the input 'x'.

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

     'nextDyadic', 'isVectorAtomic'.

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

     decibel(c(1,10,100,1000), type=1)
     decibel(c(1,10,100,1000), type=2)

