Skip to contents

This function computes the pairwise cosine similarity between fluorochrome spectral profiles based on a user-defined matrix of detector responses. It extracts a submatrix from the full spectral matrix using specified detectors and fluorochromes, and returns a symmetric similarity matrix where each entry represents the cosine similarity between two fluorochromes.

Usage

EstimateSimilarityMtx(A)

Arguments

A

A numeric matrix with named rows and columns representing detectors and fluorophores.

Value

A symmetric numeric matrix of cosine similarity values between fluorochromes. The matrix has fluorochrome names as both row and column names.

Examples

if (FALSE) { # \dontrun{
EstimateSimilarityMtx(Userm)
} # }