Skip to content

Commit d64edc5

Browse files
normalization function
1 parent b873028 commit d64edc5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

util/normalize.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
function x = normalize(x, mu, sigma)
2+
x=bsxfun(@minus,x,mu);
3+
x=bsxfun(@rdivide,x,sigma);
4+
end

0 commit comments

Comments
 (0)