correlation

This module provides functions for calculating correlations between n-dimensional arrays.

QhX.utils.correlation.correlation_nd(A, B)[source]

Computes the correlation between two n-dimensional arrays, A and B.

Parameters:
  • A (ndarray) – First input array with shape (n, m).

  • B (ndarray) – Second input array with shape (n, m).

Returns:

The correlation matrix between A and B.

Return type:

ndarray