Calculates the cosine similarity between columns of the input matrix (spectra).
Usage
cosine.similarity(spectra)
Arguments
- spectra
The spectral matrix (or dataframe), represented as
fluorophores in rows and detectors in columns.
Value
The cosine similarity matrix in fluorophores x fluorophores.