MCPcopy Create free account
hub / github.com/dask/dask / corrcoef

Function corrcoef

dask/array/routines.py:1620–1628  ·  view source on GitHub ↗
(x, y=None, rowvar=1)

Source from the content-addressed store, hash-verified

1618
1619@derived_from(np)
1620def corrcoef(x, y=None, rowvar=1):
1621 c = cov(x, y, rowvar)
1622
1623 if c.shape == ():
1624 return c / c
1625 d = diag(c)
1626 d = d.reshape((d.shape[0], 1))
1627 sqr_d = sqrt(d)
1628 return (c / sqr_d) / sqr_d.T
1629
1630
1631@implements(np.round)

Callers

nothing calls this directly

Calls 3

diagFunction · 0.90
covFunction · 0.85
reshapeMethod · 0.80

Tested by

no test coverage detected