MCPcopy Create free account
hub / github.com/DistributedML/Biscotti / Correlation

Function Correlation

lib/gonum/stat/stat.go:158–219  ·  view source on GitHub ↗

Correlation returns the weighted correlation between the samples of x and y with the given means. sum_i {w_i (x_i - meanX) * (y_i - meanY)} / (stdX * stdY) The lengths of x and y must be equal. If weights is nil then all of the weights are 1. If weights is not nil, then len(x) must equal len(weights

(x, y, weights []float64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

ExampleCorrelationFunction · 0.85
TestCorrelationFunction · 0.85
TestCorrelationMatrixFunction · 0.85
benchmarkCorrelationFunction · 0.85

Calls 2

MeanFunction · 0.85
SqrtMethod · 0.80

Tested by 4

ExampleCorrelationFunction · 0.68
TestCorrelationFunction · 0.68
TestCorrelationMatrixFunction · 0.68
benchmarkCorrelationFunction · 0.68