76 lines
4.1 KiB
HTML
76 lines
4.1 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 GetAllPosteriorDraws</title>
|
||
|
<meta name="keywords" content="GetAllPosteriorDraws">
|
||
|
<meta name="description" content="stephane.adjemian@ens.fr [09-09-2005]">
|
||
|
<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> > GetAllPosteriorDraws.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>GetAllPosteriorDraws
|
||
|
</h1>
|
||
|
|
||
|
<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
|
||
|
<div class="box"><strong>stephane.adjemian@ens.fr [09-09-2005]</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 Draws = GetAllPosteriorDraws(column,FirstMhFile,FirstLine,TotalNumberOfMhFile,NumberOfDraws) </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"> stephane.adjemian@ens.fr [09-09-2005]</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="CheckPath.html" class="code" title="function DirectoryName = CheckPath(type)">CheckPath</a> 06-03-2005</li></ul>
|
||
|
This function is called by:
|
||
|
<ul style="list-style-image:url(../matlabicon.gif)">
|
||
|
<li><a href="GetPosteriorParametersStatistics.html" class="code" title="function GetPosteriorParametersStatistics()">GetPosteriorParametersStatistics</a> stephane.adjemian@ens.fr [09-09-2005]</li></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 <a name="_sub0" href="#_subfunctions" class="code">function Draws = GetAllPosteriorDraws(column,FirstMhFile,FirstLine,TotalNumberOfMhFile,NumberOfDraws)</a>
|
||
|
0002 <span class="comment">% stephane.adjemian@ens.fr [09-09-2005]</span>
|
||
|
0003 <span class="keyword">global</span> M_ options_
|
||
|
0004
|
||
|
0005 nblck = options_.mh_nblck;
|
||
|
0006 iline = FirstLine;
|
||
|
0007 linee = 1;
|
||
|
0008 DirectoryName = <a href="CheckPath.html" class="code" title="function DirectoryName = CheckPath(type)">CheckPath</a>(<span class="string">'metropolis'</span>);
|
||
|
0009 Draws = zeros(NumberOfDraws*nblck,1);
|
||
|
0010 logpo = zeros(NumberOfDraws*nblck,1);
|
||
|
0011 ipost=0;
|
||
|
0012 <span class="keyword">if</span> column<0,
|
||
|
0013 column=1;
|
||
|
0014 ipost=1;
|
||
|
0015 <span class="keyword">end</span>
|
||
|
0016
|
||
|
0017 <span class="keyword">for</span> file = FirstMhFile:TotalNumberOfMhFile
|
||
|
0018 <span class="keyword">for</span> blck = 1:nblck
|
||
|
0019 load([DirectoryName <span class="string">'/'</span> M_.fname <span class="string">'_mh'</span> int2str(file) <span class="string">'_blck'</span> int2str(blck)],<span class="string">'x2'</span>,<span class="string">'logpo2'</span>)
|
||
|
0020 NumberOfLines = size(x2(iline:<span class="keyword">end</span>,:),1);
|
||
|
0021 Draws(linee:linee+NumberOfLines-1) = x2(iline:<span class="keyword">end</span>,column);
|
||
|
0022 logpo(linee:linee+NumberOfLines-1) = logpo2(iline:end);
|
||
|
0023 linee = linee+NumberOfLines;
|
||
|
0024 <span class="keyword">end</span>
|
||
|
0025 iline = 1;
|
||
|
0026 <span class="keyword">end</span>
|
||
|
0027
|
||
|
0028 <span class="keyword">if</span> ipost,
|
||
|
0029 Draws=logpo;
|
||
|
0030 <span class="keyword">end</span></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>
|