freqtoint                package:emu                R Documentation

_F_u_n_c_t_i_o_n _t_o _f_i_n_d _t_h_e _c_o_l_u_m_n _n_u_m_b_e_r _c_o_r_r_e_s_p_o_n_d_i_n_g _t_o _f_r_e_q_u_e_n_c_i_e_s _o_f _a _s_p_e_c_t_r_a_l _o_b_j_e_c_t

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

     Find the column number corresponding to frequencies of a spectral
     object.

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

     freqtoint(trackdata, j)

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

trackdata: A spectral object

       j: A vector of frequencies 

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

     This function is used in conjunction with object oriented
     programming of EMU spectral objects. It should not in general be
     called from inside a function. Its principal use is to determine
     the column number(s) corresponding to frequencies for spectral
     trackdata objects or spectral matrices or the element number for
     spectral vectors.

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

     Jonathan Harrington

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

     freqtoint(fric.dft,1000:2000)
     # all frequencies except 1000-2000
     freqtoint(vowlax.dft.5, -(1000:2000))
     # all frequencies except 1000 Hz
     freqtoint(e.dft, -1000)
     # the d.c. offset - i.e. column 1
     freqtoint(vowlax.dft.5, 0)
     # all freqs except the d.c. offset - i.e. not column 1
     freqtoint(vowlax.dft.5, -1)

