Mercurial > hg > ishara
annotate general/numerical/zeromax.m @ 35:f1ce7876346a
Updated docs.
author | samer |
---|---|
date | Mon, 21 Jan 2013 11:01:45 +0000 |
parents | 8476b3d9d295 |
children |
rev | line source |
---|---|
samer@21 | 1 % zeromax - additive normalisation so max value us zero |
samer@4 | 2 % |
samer@21 | 3 % zeromax :: |
samer@21 | 4 % [D:[[E]]] ~'E dimensional array of size D', |
samer@21 | 5 % 1..D ~'dimension to normalise along' |
samer@21 | 6 % -> [D] ~'shifted data'. |
samer@21 | 7 % |
samer@21 | 8 % non-finite values are ignored. Dimension defaults to 1. |
samer@21 | 9 function [y,m]=zeromax(x,dim), x=addnorm(@(y)max(y,[],dim),x); end |