brainpy.measure.weighted_correlation
brainpy.measure.weighted_correlation#
- brainpy.measure.weighted_correlation(x, y, w)[source]#
Weighted Pearson correlation of two data series.
- Parameters
x (tensor) – The data series 1.
y (tensor) – The data series 2.
w (tensor) – Weight vector, must have same length as x and y.
- Returns
corr – Weighted correlation coefficient.
- Return type
tensor