zscore
DESCRIPTION
analysis with z scoreTRANSCRIPT
8/10/2015 lasp.colorado.edu/cism/CISM_DX/code/CISM_DX0.50/required_packages/octaveforge/extra/NaN/zscore.mhttp://lasp.colorado.edu/cism/CISM_DX/code/CISM_DX0.50/required_packages/octaveforge/extra/NaN/zscore.m 1/1functioni=zscore(i,DIM)%ZSCOREremovesthemeanandnormalizesthedata%toavarianceof1.%%z=zscore(x,DIM)%calculatesthezscoreofxalongdimensionDIM%itremovesthe%%DIM dimension% 1:STATSofcolumns% 2:STATSofrows% defaultor[]:firstDIMENSION,withmorethan1element%%features:%candealwithNaN's(missingvalues)%dimensionargument%compatibletoMatlabandOctave%%seealso:SUMSKIPNAN,MEAN,STD,DETREND%%REFERENCE(S):%[1]http://mathworld.wolfram.com/zScore.html%Thisprogramisfreesoftware;youcanredistributeitand/ormodify%itunderthetermsoftheGNUGeneralPublicLicenseaspublishedby%theFreeSoftwareFoundation;eitherversion2oftheLicense,or%(atyouroption)anylaterversion.%%Thisprogramisdistributedinthehopethatitwillbeuseful,%butWITHOUTANYWARRANTY;withouteventheimpliedwarrantyof%MERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.Seethe%GNUGeneralPublicLicenseformoredetails.%%YoushouldhavereceivedacopyoftheGNUGeneralPublicLicense%alongwiththisprogram;ifnot,writetotheFreeSoftware%Foundation,Inc.,59TemplePlace,Suite330,Boston,MA021111307USA% Copyright(C)20002003byAloisSchloegl % $Revision:1.14$% $Id:zscore.m,v1.142003/10/0909:00:50schloeglExp$ifany(size(i)==0);return;end;ifnargin