pyampact.alignmentUtils.simmx

pyampact.alignmentUtils.simmx(A, B)[source]

Calculate a similarity matrix between feature matrices A and B.

Parameters:
  • A (np.ndarray) – The first feature matrix, where each row represents a sample and each column represents a feature.

  • B (np.ndarray, optional) – The second feature matrix. If not provided, B will be set to A, allowing for self-similarity calculation.

Returns:

The similarity matrix between A and B, where the element at (i, j) represents the similarity between the i-th sample of A and the j-th sample of B.

Return type:

np.ndarray