Skip to content
Snippets Groups Projects
Commit e3d84e3d authored by Matthew Johnson's avatar Matthew Johnson
Browse files

replace function

parent 54d744d3
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,7 @@ def whiten(datalist):
return general.treemap(apply_whitening, datalist)
def diag_whiten(datalist):
mu, l = mean(datalist), np.sqrt(diag_of_cov(datalist))
mu, l = mean(datalist), np.sqrt(np.diag(cov(datalist)))
def apply_whitening(x):
return (x-mu)/l + mu
return general.treemap(apply_whitening, datalist)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment