Description Usage Arguments Value Author(s) References See Also Examples
Weighted cross correlation and autocorrelation, as described in De Gelder et al. (2001), for assessing similarities in spectra-like data containing peak shifts. Euclidean distances are useless in this situation.
1 2 3 |
pattern1 |
Pattern. |
pattern2 |
Another pattern. |
patterns |
Pattern matrix: rows correspond with patterns. |
trwdth |
Triangle width, given in the number of data points. |
wghts |
Optional weights vector, will be calculated from triangle width if necessary. Sometimes it is more efficient to pre-calculate it and give it as an argument. |
acors |
Autocorrelation, also optional to speed up calculations. |
do.transpose |
Internally, columns should correspond with patterns, so normally one should leave this value to its default: TRUE. If a matrix is already in the correct format, one can avoid unnecessary double transpose operations. |
Function wcc
returns the WCC value, a similarity value between
0 and 1. Functions wac
and wacmat
return weighted
autocorrelations for one pattern and a matrix of patterns,
respectively.
Ron Wehrens
R. de Gelder, R. Wehrens, and J.A. Hageman. A generalized expression for the similarity spectra: application to powder diffraction pattern classification. J. Comput. Chem., 22(3), 273-289, 2001.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.