calculateSimilarity           package:maDB           R Documentation

_C_a_l_c_u_l_a_t_e _s_i_m_i_l_a_r_i_t_i_e_s (_d_i_s_t_a_n_c_e_s) _b_e_t_w_e_e_n _a _v_e_c_t_o_r _a_n_d _t_h_e _r_o_w_s (_c_o_l_u_m_n_s) _o_f _a _m_a_t_r_i_x

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

     'calculateSimilarity' calculates the similarity (distance) between
     the submitted numeric vector and all rows respectively columns of
     a numerical matrix using the specified similarity (distance)
     measurement method.

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

     calculateSimilarity(vector,matrix,orientation="h",distance.fun=distance.euclidian,include.values=FALSE)

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

  vector: The numerical vector for which the similarities should be
          calculated.

  matrix: Numerical matrix with wichs columns (rows) the vector
          submitted with the 'vector' attribute should be compared.

orientation: If the vector should be compared with the rows ('"h"') or
          columns ('"v"') of the matrix.

distance.fun: The function that should be used to calculate the
          similarity.

include.values: If the input values should be included in the result.
          If false only a vector with the distances will be returned.

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

     This function is a simple and quick way to calculate the
     similarity of a vector and the columns or rows of a matrix. This
     function can be used if one has for example a gene with known gene
     expression or regulation pattern and want to search for other
     genes that show a similar pattern under the same conditions.

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

     Johannes Rainer

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

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

     'distance.pearson' 'distance.euclidian' 'distance.spearman'
     'dbSearchSimilarPattern'

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

