Computes a hotspot matrix based on a user-defined matrix A, using specified detectors and fluorophores.
The function extracts a submatrix from A, calculates its Gram matrix, applies the Moore-Penrose pseudoinverse,
and returns the square root of the absolute values of the result.
Arguments
- A
A numeric matrix with named rows and columns representing detectors and fluorophores.
Value
A numeric matrix representing the estimated hotspot matrix, derived from the pseudoinverse of the Gram matrix of the selected submatrix.
Details
The function performs the following steps:
Computes the Gram matrix: t(A) %*% A.
Applies the Moore-Penrose pseudoinverse to the Gram matrix.
Takes the square root of the absolute values of the pseudoinverse matrix.