87 lines
4.3 KiB
HTML
87 lines
4.3 KiB
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 dcompare</title>
|
||
|
<meta name="keywords" content="dcompare">
|
||
|
<meta name="description" content="Copyright (C) 2001 Michel Juillard">
|
||
|
<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">.</a> > dcompare.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 . <img alt=">" border="0" src="../right.png"></a></td></tr></table>-->
|
||
|
|
||
|
<h1>dcompare
|
||
|
</h1>
|
||
|
|
||
|
<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
|
||
|
<div class="box"><strong>Copyright (C) 2001 Michel Juillard</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 dcompare(s1) </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"> Copyright (C) 2001 Michel Juillard</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)">
|
||
|
<li><a href="bseastr.html" class="code" title="function x = bseastr(s1,s2)">bseastr</a> Copyright (C) 2001 Michel Juillard</li><li><a href="ftest.html" class="code" title="function ftest (s1,s2)">ftest</a> Copyright (C) 2001 Michel Juillard</li></ul>
|
||
|
This function is called by:
|
||
|
<ul style="list-style-image:url(../matlabicon.gif)">
|
||
|
</ul>
|
||
|
<!-- crossreference -->
|
||
|
|
||
|
|
||
|
<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
|
||
|
<div class="fragment"><pre>0001 <span class="comment">% Copyright (C) 2001 Michel Juillard</span>
|
||
|
0002 <span class="comment">%</span>
|
||
|
0003 <a name="_sub0" href="#_subfunctions" class="code">function dcompare(s1)</a>
|
||
|
0004
|
||
|
0005 <span class="keyword">global</span> options_ nvx nvy x y lag1
|
||
|
0006
|
||
|
0007 <a href="ftest.html" class="code" title="function ftest (s1,s2)">ftest</a>(s1,0) ;
|
||
|
0008
|
||
|
0009 i = [lag1(1):size(x,2)-lag1(2)+1]' ;
|
||
|
0010
|
||
|
0011 <span class="keyword">if</span> size(options_.smpl,1) == 1
|
||
|
0012 error([<span class="string">'DSAMPLE not specified.'</span>]) ;
|
||
|
0013 <span class="keyword">end</span>
|
||
|
0014
|
||
|
0015 <span class="keyword">if</span> options_.smpl(3) > 0
|
||
|
0016 <span class="keyword">if</span> options_.smpl(3) == 2
|
||
|
0017 <span class="keyword">if</span> options_.smpl(1)<0 | options_.smpl(2)>size(x,2)-lag1(2)
|
||
|
0018 error (<span class="string">'Wrong sample.'</span>) ;
|
||
|
0019 <span class="keyword">end</span>
|
||
|
0020 i = [options_.smpl(1)+lag1(1):options_.smpl(2)+lag1(1)]' ;
|
||
|
0021 <span class="keyword">elseif</span> options_.smpl(3) == 1
|
||
|
0022 <span class="keyword">if</span> options_.smpl(1)>size(x,2)-lag1(2)
|
||
|
0023 error (<span class="string">'Wrong sample.'</span>) ;
|
||
|
0024 <span class="keyword">end</span>
|
||
|
0025 i = [lag1(1):options_.smpl(1)+lag1(1)]' ;
|
||
|
0026 <span class="keyword">end</span>
|
||
|
0027 <span class="keyword">end</span>
|
||
|
0028
|
||
|
0029 j = <a href="bseastr.html" class="code" title="function x = bseastr(s1,s2)">bseastr</a>(nvx,nvy) ;
|
||
|
0030
|
||
|
0031 <span class="keyword">if</span> stop
|
||
|
0032 <span class="keyword">return</span> ;
|
||
|
0033 <span class="keyword">end</span>
|
||
|
0034
|
||
|
0035 z = mean(mean(abs(x(j,i)-y(j,i)))) ;
|
||
|
0036
|
||
|
0037 disp ([<span class="string">'The mean absolute difference between set '</span> s1(1,:) <span class="string">'and set '</span> s1(2,:)]) ;
|
||
|
0038 disp ([<span class="string">'is : '</span> num2str(z)]) ;
|
||
|
0039 <span class="keyword">return</span> ;
|
||
|
0040
|
||
|
0041</pre></div>
|
||
|
<hr><address>Generated on Fri 16-Jun-2006 09:09:06 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address>
|
||
|
</body>
|
||
|
</html>
|