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

Function corrcoef

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

Source from the content-addressed store, hash-verified

1571
1572@derived_from(np)
1573def corrcoef(x, y=None, rowvar=1):
1574 c = cov(x, y, rowvar)
1575 if c.shape == ():
1576 return c / c
1577 d = diag(c)
1578 d = d.reshape((d.shape[0], 1))
1579 sqr_d = sqrt(d)
1580 return (c / sqr_d) / sqr_d.T
1581
1582
1583@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