We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fe2255 commit c8d665dCopy full SHA for c8d665d
util/zscore.m
@@ -0,0 +1,6 @@
1
+function [x, mu, sigma] = zscore(x)
2
+ sigma=max(std(x),eps);
3
+ mu=mean(x);
4
+ x=bsxfun(@minus,x,mu);
5
+ x=bsxfun(@rdivide,x,sigma);
6
+end
0 commit comments