📄 sumskipnan.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><html><head> <title>Description of sumskipnan</title> <meta name="keywords" content="sumskipnan"> <meta name="description" content="SUMSKIPNAN adds all non-NaN values."> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="generator" content="m2html © 2003 Guillaume Flandin"> <meta name="robots" content="index, follow"> <link type="text/css" rel="stylesheet" href="../m2html.css"></head><body><a name="_top"></a><div><a href="../index.html">Home</a> > <a href="index.html">tsa</a> > sumskipnan.m</div><!--<table width="100%"><tr><td align="left"><a href="../index.html"><img alt="<" border="0" src="../left.png"> Master index</a></td><td align="right"><a href="index.html">Index for tsa <img alt=">" border="0" src="../right.png"></a></td></tr></table>--><h1>sumskipnan</h1><h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><div class="box"><strong>SUMSKIPNAN adds all non-NaN values.</strong></div><h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><div class="box"><strong>function [o,count,SSQ,S4M] = sumskipnan(i,DIM) </strong></div><h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><div class="fragment"><pre class="comment"> SUMSKIPNAN adds all non-NaN values. All NaN's are skipped; NaN's are considered as missing values. SUMSKIPNAN of NaN's only gives O; and the number of valid elements is return. SUMSKIPNAN is also the elementary function for calculating various statistics (e.g. MEAN, STD, VAR, RMS, MEANSQ, SKEWNESS, KURTOSIS, MOMENT, STATISTIC etc.) from data with missing values. SUMSKIPNAN implements the DIMENSION-argument for data with missing values. Also the second output argument return the number of valid elements (not NaNs) Y = sumskipnan(x [,DIM]) [Y,N,SSQ] = sumskipnan(x [,DIM]) DIM dimension 1 sum of columns 2 sum of rows default or []: first DIMENSION with more than 1 element Y resulting sum N number of valid (not missing) elements SSQ sum of squares The mean & standard error of the mean and Y./N & sqrt((SSQ-Y.*Y./N)./(N.*max(N-1,0))); the mean square & the standard error of the mean square and SSQ./N & sqrt((S4M-SSQ.^2./N)./(N.*max(N-1,0))) features: - can deal with NaN's (missing values) - implements dimension argument. - compatible with Matlab and Octave see also: SUM, NANSUM, MEAN, STD, VAR, RMS, MEANSQ, SSQ, MOMENT, SKEWNESS, KURTOSIS, SEM</pre></div><!-- crossreference --><h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>This function calls:<ul style="list-style-image:url(../matlabicon.gif)"></ul>This function is called by:<ul style="list-style-image:url(../matlabicon.gif)"><li><a href="arfit2.html" class="code" title="function [w, MAR, C, sbc, fpe, th]=arfit2(Y, pmin, pmax, selector, no_const)">arfit2</a> ARFIT2 estimates multivariate autoregressive parameters</li><li><a href="covm.html" class="code" title="function [CC,NN] = covm(X,Y,Mode);">covm</a> COVM generates covariance matrix</li><li><a href="histo2.html" class="code" title="function R=histo2(Y)">histo2</a> HISTO2 calculates histogram of each column</li><li><a href="invest0.html" class="code" title="function [AutoCov,AutoCorr,MX,E,NC]=invest0(Y,Pmax,Mode);">invest0</a> First Investigation of a signal (time series) - automated part</li><li><a href="lattice.html" class="code" title="function [MX,PE,arg3] = lattice(Y,lc,Mode);">lattice</a> Estimates AR(p) model parameter with lattice algorithm (Burg 1968)</li><li><a href="pacf.html" class="code" title="function [PARCOR,sig,cil,ciu]= pacf(Z,KMAX);">pacf</a> Partial Autocorrelation function</li><li><a href="y2res.html" class="code" title="function [R]=y2res(Y)">y2res</a> Y2RES evaluates basic statistics of a data series (column)</li></ul><!-- crossreference --><hr><address>Generated on Tue 17-Aug-2004 00:13:21 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -