Commit 00f1461e authored by Stefan Weßel's avatar Stefan Weßel
Browse files

ic

parents
This diff is collapsed.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>MC_leveller: acml_rand.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<h1>acml_rand.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef MCL_ACML_RAND_H </span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define MCL_ACML_RAND_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="keyword">extern</span> <span class="stringliteral">"C"</span> <span class="keywordtype">void</span> dranduniform_(<span class="keywordtype">int</span> *N, <span class="keywordtype">double</span> *A, <span class="keywordtype">double</span> *B, <span class="keywordtype">int</span> *state,
<a name="l00005"></a>00005 <span class="keywordtype">double</span> *X, <span class="keywordtype">int</span> *info);
<a name="l00006"></a>00006 <span class="keyword">extern</span> <span class="stringliteral">"C"</span> <span class="keywordtype">void</span> dranddiscreteuniform_(<span class="keywordtype">int</span> *N, <span class="keywordtype">int</span> *A, <span class="keywordtype">int</span> *B, <span class="keywordtype">int</span> *state,
<a name="l00007"></a>00007 <span class="keywordtype">int</span> *X, <span class="keywordtype">int</span> *info);
<a name="l00008"></a>00008 <span class="keyword">extern</span> <span class="stringliteral">"C"</span> <span class="keywordtype">void</span> drandinitialize_(<span class="keywordtype">int</span> *GENID, <span class="keywordtype">int</span> *SUBID, <span class="keywordtype">int</span> *SEED,
<a name="l00009"></a>00009 <span class="keywordtype">int</span> *LSEED, <span class="keywordtype">int</span> *STATE, <span class="keywordtype">int</span> *LSTATE,
<a name="l00010"></a>00010 <span class="keywordtype">int</span> *INFO);
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;cstdlib&gt;</span>
<a name="l00012"></a>00012 <span class="keyword">class </span>acml_rand {
<a name="l00013"></a>00013 <span class="keyword">public</span>:
<a name="l00014"></a>00014 acml_rand(uint seed, <span class="keywordtype">double</span> A, <span class="keywordtype">double</span> B, <span class="keywordtype">int</span> len=1000) {
<a name="l00015"></a>00015 len_ = len;
<a name="l00016"></a>00016 vec = <span class="keyword">new</span> <span class="keywordtype">double</span>[len_];
<a name="l00017"></a>00017 A_ = A;
<a name="l00018"></a>00018 B_ = B;
<a name="l00019"></a>00019 <span class="comment">//fill seed array</span>
<a name="l00020"></a>00020 seed_len = 624;
<a name="l00021"></a>00021 <span class="keywordtype">int</span> *seed_array = <span class="keyword">new</span> <span class="keywordtype">int</span>[seed_len];
<a name="l00022"></a>00022 srand48(seed);
<a name="l00023"></a>00023 <span class="keywordflow">for</span> (uint i = 0; i &lt; (uint)seed_len; ++i) {
<a name="l00024"></a>00024 seed_array[i] = (int) lrand48();
<a name="l00025"></a>00025 }
<a name="l00026"></a>00026 <span class="comment">//initialize Mersenne PRNG int genid = 3;</span>
<a name="l00027"></a>00027 <span class="keywordtype">int</span> info;
<a name="l00028"></a>00028 <span class="keywordtype">int</span> ignored = 0;
<a name="l00029"></a>00029 <span class="keywordtype">int</span> genid=3;
<a name="l00030"></a>00030 state_len = 700;
<a name="l00031"></a>00031 state = <span class="keyword">new</span> <span class="keywordtype">int</span>[state_len];
<a name="l00032"></a>00032 drandinitialize_(&amp;genid, &amp;ignored, seed_array, &amp;seed_len, state,
<a name="l00033"></a>00033 &amp;state_len, &amp;info);
<a name="l00034"></a>00034 generate();
<a name="l00035"></a>00035 }
<a name="l00036"></a>00036 ~acml_rand() {
<a name="l00037"></a>00037 <span class="keyword">delete</span>[]vec;
<a name="l00038"></a>00038 <span class="keyword">delete</span>[]state;
<a name="l00039"></a>00039 }
<a name="l00040"></a>00040 <span class="keyword">inline</span> <span class="keyword">const</span> <span class="keywordtype">double</span> &amp;operator () (<span class="keywordtype">void</span>) {
<a name="l00041"></a>00041 <span class="keywordflow">if</span> (pos &lt; len_)
<a name="l00042"></a>00042 <span class="keywordflow">return</span> vec[pos++];
<a name="l00043"></a>00043 generate();
<a name="l00044"></a>00044 <span class="keywordflow">return</span> vec[pos++];
<a name="l00045"></a>00045 }
<a name="l00046"></a>00046 <span class="keyword">private</span>:
<a name="l00047"></a>00047 <span class="keywordtype">void</span> generate() {
<a name="l00048"></a>00048 pos = 0;
<a name="l00049"></a>00049 <span class="keywordtype">int</span> info;
<a name="l00050"></a>00050 dranduniform_(&amp;len_, &amp;A_, &amp;B_, state, vec, &amp;info);
<a name="l00051"></a>00051 }
<a name="l00052"></a>00052 <span class="keywordtype">int</span> pos;
<a name="l00053"></a>00053 <span class="keywordtype">int</span> len_;
<a name="l00054"></a>00054 <span class="keywordtype">int</span> state_len;
<a name="l00055"></a>00055 <span class="keywordtype">int</span> seed_len;
<a name="l00056"></a>00056 <span class="keywordtype">double</span> *vec;
<a name="l00057"></a>00057 <span class="keywordtype">int</span> *state;
<a name="l00058"></a>00058 <span class="keywordtype">double</span> A_, B_;
<a name="l00059"></a>00059 };
<a name="l00060"></a>00060
<a name="l00061"></a>00061 <span class="keyword">class </span>acml_rand_discrete {
<a name="l00062"></a>00062 <span class="keyword">public</span>:
<a name="l00063"></a>00063 acml_rand_discrete(uint seed, <span class="keywordtype">int</span> A, <span class="keywordtype">int</span> B, <span class="keywordtype">int</span> len=1000) {
<a name="l00064"></a>00064 len_ = len;
<a name="l00065"></a>00065 vec = <span class="keyword">new</span> <span class="keywordtype">int</span>[len_];
<a name="l00066"></a>00066 A_ = A;
<a name="l00067"></a>00067 B_ = B;
<a name="l00068"></a>00068 <span class="comment">//fill seed array</span>
<a name="l00069"></a>00069 seed_len = 624;
<a name="l00070"></a>00070 <span class="keywordtype">int</span> *seed_array = <span class="keyword">new</span> <span class="keywordtype">int</span>[seed_len];
<a name="l00071"></a>00071 srand48(seed);
<a name="l00072"></a>00072 <span class="keywordflow">for</span> (uint i = 0; i &lt; (uint)seed_len; ++i) {
<a name="l00073"></a>00073 seed_array[i] = (int) lrand48();
<a name="l00074"></a>00074 }
<a name="l00075"></a>00075 <span class="comment">//initialize Mersenne PRNG int genid = 3;</span>
<a name="l00076"></a>00076 <span class="keywordtype">int</span> info;
<a name="l00077"></a>00077 <span class="keywordtype">int</span> ignored = 0;
<a name="l00078"></a>00078 <span class="keywordtype">int</span> genid=3;
<a name="l00079"></a>00079 <span class="comment">//@fixme why 700? not 633?</span>
<a name="l00080"></a>00080 state_len = 700;
<a name="l00081"></a>00081 state = <span class="keyword">new</span> <span class="keywordtype">int</span>[state_len];
<a name="l00082"></a>00082 drandinitialize_(&amp;genid, &amp;ignored, seed_array, &amp;seed_len, state,
<a name="l00083"></a>00083 &amp;state_len, &amp;info);
<a name="l00084"></a>00084 generate();
<a name="l00085"></a>00085 }
<a name="l00086"></a>00086 ~acml_rand_discrete() {
<a name="l00087"></a>00087 <span class="keyword">delete</span>[]vec;
<a name="l00088"></a>00088 <span class="keyword">delete</span>[]state;
<a name="l00089"></a>00089 }
<a name="l00090"></a>00090 <span class="keyword">inline</span> <span class="keyword">const</span> <span class="keywordtype">int</span> &amp;operator () (<span class="keywordtype">void</span>) {
<a name="l00091"></a>00091 <span class="keywordflow">if</span> (pos &lt; len_)
<a name="l00092"></a>00092 <span class="keywordflow">return</span> vec[pos++];
<a name="l00093"></a>00093 generate();
<a name="l00094"></a>00094 <span class="keywordflow">return</span> vec[pos++];
<a name="l00095"></a>00095 }
<a name="l00096"></a>00096 <span class="keyword">private</span>:
<a name="l00097"></a>00097 <span class="keywordtype">void</span> generate() {
<a name="l00098"></a>00098 pos = 0;
<a name="l00099"></a>00099 <span class="keywordtype">int</span> info;
<a name="l00100"></a>00100 dranddiscreteuniform_(&amp;len_, &amp;A_, &amp;B_, state, vec, &amp;info);
<a name="l00101"></a>00101 }
<a name="l00102"></a>00102 <span class="keywordtype">int</span> pos;
<a name="l00103"></a>00103 <span class="keywordtype">int</span> len_;
<a name="l00104"></a>00104 <span class="keywordtype">int</span> state_len;
<a name="l00105"></a>00105 <span class="keywordtype">int</span> seed_len;
<a name="l00106"></a>00106 <span class="keywordtype">int</span> *vec;
<a name="l00107"></a>00107 <span class="keywordtype">int</span> *state;
<a name="l00108"></a>00108 <span class="keywordtype">int</span> A_, B_;
<a name="l00109"></a>00109 };
<a name="l00110"></a>00110 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 8 18:22:34 2009 for MC_leveller by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>MC_leveller: Class List</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li class="current"><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>Class List</h1>Here are the classes, structs, unions and interfaces with brief descriptions:<table>
<tr><td class="indexkey"><a class="el" href="classmeasurements.html">measurements</a></td><td class="indexvalue">Basic <a class="el" href="classmeasurements.html" title="Basic measurements class.">measurements</a> class </td></tr>
<tr><td class="indexkey"><a class="el" href="structone__task.html">one_task</a></td><td class="indexvalue">One_task </td></tr>
<tr><td class="indexkey"><a class="el" href="classrunner.html">runner</a></td><td class="indexvalue">Runner </td></tr>
</table>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 8 18:22:34 2009 for MC_leveller by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>MC_leveller: Member List</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>measurements Member List</h1>This is the complete list of members for <a class="el" href="classmeasurements.html">measurements</a>, including all inherited members.<p><table>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#e1ac4a3f40e78a0e2e8b71208d4d1313">add</a>(std::string name, T value)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#c2a7e804a30825d77c111892ead6fc2c">add</a>(std::string name, T *value)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#425cb494200db7a39e99f37dfdfa23bc">add</a>(std::string name, vector&lt; T &gt; value)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#4ec8503130241dbe69551d91c16ae493">add</a>(std::string name, std::valarray&lt; double &gt; value)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#5541c3771b0087dbaac3367e7c6e5ed4">add_evalable</a>(std::string, std::vector&lt; std::string &gt; &amp;, void(*f)(double &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;))</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#c581fa935ff298814477770f0644b21c">add_evalable</a>(std::string, std::string, void(*f)(double &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;))</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#bd5602f6b1f2e9d5c85d419d4bb25f97">add_evalable</a>(std::string, std::string, std::string, void(*f)(double &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;))</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#374fccf7c1338d870745242b59268d2b">add_evalable</a>(std::string, std::string, std::string, std::string, void(*f)(double &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;))</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#7ee56daa510eb09756dafde2eb853da3">add_evalable</a>(std::string, std::string, std::string, std::string, std::string, void(*f)(double &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;))</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>add_evalable</b>(std::string, std::vector&lt; std::string &gt; &amp;, void(*f)(double &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;, double *), double *) (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>add_evalable</b>(std::string, std::string, void(*f)(double &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;, double *), double *) (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>add_evalable</b>(std::string, std::string, std::string, void(*f)(double &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;, double *), double *) (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>add_evalable</b>(std::string, std::string, std::string, std::string, void(*f)(double &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;, double *), double *) (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>add_evalable</b>(std::string, std::string, std::string, std::string, std::string, void(*f)(double &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;, double *), double *) (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#e44e2ffcf3e14cf741a1192a319aaf20">add_observable</a>(std::string)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#9dc7d64a614f14c55778e9584a5bf793">add_observable</a>(std::string, luint)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#abfc185b78e039b7e17cf2e4ec1c5adb">add_observable</a>(std::string, luint, luint)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#86ccb13b71d30b47f1e55dce771ccc45">add_vectorevalable</a>(std::string, std::vector&lt; std::string &gt; &amp;, void(*f)(std::valarray&lt; double &gt; &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;))</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#e61c92fc4cd8d409fb273a7c33a5ea17">add_vectorevalable</a>(std::string, std::string, void(*f)(std::valarray&lt; double &gt; &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;))</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#6e6773648b428abe5bb4f021f067931c">add_vectorevalable</a>(std::string, std::string, std::string, void(*f)(std::valarray&lt; double &gt; &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;))</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#399999c92be2b53a0c9272783fcad91a">add_vectorevalable</a>(std::string, std::string, std::string, std::string, void(*f)(std::valarray&lt; double &gt; &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;))</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#2445e45b20657e475dfae42e2495a76b">add_vectorevalable</a>(std::string, std::string, std::string, std::string, std::string, void(*f)(std::valarray&lt; double &gt; &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;))</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>add_vectorevalable</b>(std::string, std::vector&lt; std::string &gt; &amp;, void(*f)(std::valarray&lt; double &gt; &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;, double *), double *) (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#8c749f717514315b5fac0f515567e6bf">add_vectorevalable</a>(std::string, std::string, void(*f)(std::valarray&lt; double &gt; &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;, double *), double *)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#66f6bf4ac799bfbb4cc0446c833da341">add_vectorevalable</a>(std::string, std::string, std::string, void(*f)(std::valarray&lt; double &gt; &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;, double *), double *)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#5e719fe8cdf52e556b430b6b48121143">add_vectorevalable</a>(std::string, std::string, std::string, std::string, void(*f)(std::valarray&lt; double &gt; &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;, double *), double *)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#146ab52800efecf18892a6cc54ddd5d3">add_vectorevalable</a>(std::string, std::string, std::string, std::string, std::string, void(*f)(std::valarray&lt; double &gt; &amp;, std::vector&lt; std::valarray&lt; double &gt; * &gt; &amp;, double *), double *)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#fbbcc6b0cbd6a9c34d9fcdb7370cfc87">add_vectorobservable</a>(std::string)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#64897050112e3f9f7c2f40707397523b">add_vectorobservable</a>(std::string, luint)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#59ec7d2653135ba155a227e6309479cc">add_vectorobservable</a>(std::string, luint, luint)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#38c2a056ae42b26c529d1620cf6a3536">add_vectorobservable</a>(std::string, luint, luint, luint)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>autocorrelationtime</b>(std::string name, std::valarray&lt; double &gt; &amp;v) (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#a9a1fcf0fa8d064af612ac370aae422f">autocorrelationtime</a>(std::string name, uint j=0)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr bgcolor="#f0f0f0"><td><b>clear</b>() (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>error</b>(std::string name, std::valarray&lt; double &gt; &amp;v) (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#1d661d53942575a15cbe1da08c11c643">error</a>(std::string name, uint j=0)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr bgcolor="#f0f0f0"><td><b>eva_v</b> (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>extract_observable</b>(std::string name, int i, observable &amp;os) (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr bgcolor="#f0f0f0"><td><b>get_evaluable</b>(std::string name) (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr bgcolor="#f0f0f0"><td><b>get_observable</b>(std::string name) (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#0d0e8ac163265e3a02ca83e150221ed4">get_statistics</a>(std::string, std::ostream &amp;)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#e6a871ac853fd836b49b56cb0ef5c70c">get_statistics</a>(std::ostream &amp;)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>get_vectorevalable</b>(std::string name) (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr bgcolor="#f0f0f0"><td><b>get_vectorobservable</b>(std::string name) (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr bgcolor="#f0f0f0"><td><b>mean</b>(std::string name, std::valarray&lt; double &gt; &amp;v) (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#31f97f8609ffa441bddf91214f8b00d6">mean</a>(std::string name, uint j=0)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#8808e688f60a990bd87583bf7ae5f70f">measurements</a>()</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#5a0d8032fe5c156ed577b637e4cde3c3">merge</a>(idump &amp;)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#ecbd633babf361d23fc1119bcb786b63">merge</a>(std::string)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#43b7fecf4ea146bbe9e9941dbb80e914">merge</a>(std::string name, idump &amp;bd)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr bgcolor="#f0f0f0"><td><b>obs_v</b> (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#16b99ed7218f85ecf1494519d155d9ab">read</a>(idump &amp;)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#56f0c9b4ebd6f87795402c24011f1388">read</a>(std::string)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#d50ae0faa7d3a20190bb49cfdad450cc">read</a>(std::string name, idump &amp;bd)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr bgcolor="#f0f0f0"><td><b>reset</b>() (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#b2a58c30090b7f6288ec5da77f10921c">set_bin_length</a>(std::string name, luint bl)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#9e6137a3303c777ac9407fde54f56fdb">set_vector_length</a>(std::string name, luint nl)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr bgcolor="#f0f0f0"><td><b>timeseries</b>(std::string name, uint j, std::valarray&lt; double &gt; &amp;v) (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr bgcolor="#f0f0f0"><td><b>timeseries</b>(std::string name, std::valarray&lt; double &gt; &amp;v) (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr bgcolor="#f0f0f0"><td><b>variance</b>(string name, std::valarray&lt; double &gt; &amp;v) (defined in <a class="el" href="classmeasurements.html">measurements</a>)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#264dc7ff4d785f16bdb5acbfea94d96c">variance</a>(std::string name, uint j=0)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#26690b08604d461717312270d40021d4">write</a>(odump &amp;)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#396460ca67c99ae0fc99c5a5fe52e472">write</a>(std::string)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#035e31e9821c0e4d6dbe853c5d813bd7">write</a>(std::string name, odump &amp;bd)</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classmeasurements.html#c156535b14f2b4cce78ead8117ed3dd7">~measurements</a>()</td><td><a class="el" href="classmeasurements.html">measurements</a></td><td><code> [inline]</code></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 8 18:22:34 2009 for MC_leveller by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
This diff is collapsed.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>MC_leveller: definitions.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<h1>definitions.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#define MASTER 0</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span>
<a name="l00003"></a>00003 <span class="preprocessor">#define T_STATUS 1</span>
<a name="l00004"></a>00004 <span class="preprocessor"></span><span class="preprocessor">#define T_ACTION 2</span>
<a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define T_NEW_JOB 3</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define T_PARTNER 4</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span><span class="preprocessor">#define T_WEIGHT 5</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span>
<a name="l00009"></a>00009 <span class="preprocessor">#define S_IDLE 1</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define S_BUSY 2</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define S_FINISHED 3</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define S_GLOBAL_UPDATE 4</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#define S_CHECKPOINT 5</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span>
<a name="l00015"></a>00015
<a name="l00016"></a>00016 <span class="preprocessor">#define A_EXIT 1</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#define A_CONTINUE 2</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define A_NEW_JOB 3</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define A_CONTINUE_JOB 4</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define A_PROCESS_DATA_NEW_JOB 5</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define A_GLOBAL_UPDATE 6</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define A_CHECKPOINT 7</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024
<a name="l00025"></a>00025
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 8 18:22:34 2009 for MC_leveller by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
BODY,H1,H2,H3,H4,H5,H6,P,CENTER,TD,TH,UL,DL,DIV {
font-family: Geneva, Arial, Helvetica, sans-serif;
}
BODY,TD {
font-size: 90%;
}
H1 {
text-align: center;
font-size: 160%;
}
H2 {
font-size: 120%;
}
H3 {
font-size: 100%;
}
CAPTION {
font-weight: bold
}
DIV.qindex {
width: 100%;
background-color: #e8eef2;
border: 1px solid #84b0c7;
text-align: center;
margin: 2px;
padding: 2px;
line-height: 140%;
}
DIV.navpath {
width: 100%;
background-color: #e8eef2;
border: 1px solid #84b0c7;
text-align: center;
margin: 2px;
padding: 2px;
line-height: 140%;
}
DIV.navtab {
background-color: #e8eef2;
border: 1px solid #84b0c7;
text-align: center;
margin: 2px;
margin-right: 15px;
padding: 2px;
}
TD.navtab {
font-size: 70%;
}
A.qindex {
text-decoration: none;
font-weight: bold;
color: #1A419D;
}
A.qindex:visited {
text-decoration: none;
font-weight: bold;
color: #1A419D
}
A.qindex:hover {
text-decoration: none;
background-color: #ddddff;
}
A.qindexHL {
text-decoration: none;
font-weight: bold;
background-color: #6666cc;
color: #ffffff;
border: 1px double #9295C2;
}
A.qindexHL:hover {
text-decoration: none;
background-color: #6666cc;
color: #ffffff;
}
A.qindexHL:visited {
text-decoration: none;
background-color: #6666cc;
color: #ffffff
}
A.el {
text-decoration: none;
font-weight: bold
}
A.elRef {
font-weight: bold
}
A.code:link {
text-decoration: none;
font-weight: normal;
color: #0000FF
}
A.code:visited {
text-decoration: none;
font-weight: normal;
color: #0000FF
}
A.codeRef:link {
font-weight: normal;
color: #0000FF
}
A.codeRef:visited {
font-weight: normal;
color: #0000FF
}
A:hover {
text-decoration: none;
background-color: #f2f2ff
}
DL.el {
margin-left: -1cm
}
.fragment {
font-family: monospace, fixed;
font-size: 95%;
}
PRE.fragment {
border: 1px solid #CCCCCC;
background-color: #f5f5f5;
margin-top: 4px;
margin-bottom: 4px;
margin-left: 2px;
margin-right: 8px;
padding-left: 6px;
padding-right: 6px;
padding-top: 4px;
padding-bottom: 4px;
}
DIV.ah {
background-color: black;
font-weight: bold;
color: #ffffff;
margin-bottom: 3px;
margin-top: 3px
}
DIV.groupHeader {
margin-left: 16px;
margin-top: 12px;
margin-bottom: 6px;
font-weight: bold;
}
DIV.groupText {
margin-left: 16px;
font-style: italic;
font-size: 90%
}
BODY {
background: white;
color: black;
margin-right: 20px;
margin-left: 20px;
}
TD.indexkey {
background-color: #e8eef2;
font-weight: bold;
padding-right : 10px;
padding-top : 2px;
padding-left : 10px;
padding-bottom : 2px;
margin-left : 0px;
margin-right : 0px;
margin-top : 2px;
margin-bottom : 2px;
border: 1px solid #CCCCCC;
}
TD.indexvalue {
background-color: #e8eef2;
font-style: italic;
padding-right : 10px;
padding-top : 2px;
padding-left : 10px;
padding-bottom : 2px;
margin-left : 0px;
margin-right : 0px;
margin-top : 2px;
margin-bottom : 2px;
border: 1px solid #CCCCCC;
}
TR.memlist {
background-color: #f0f0f0;
}
P.formulaDsp {
text-align: center;
}
IMG.formulaDsp {
}
IMG.formulaInl {
vertical-align: middle;
}
SPAN.keyword { color: #008000 }
SPAN.keywordtype { color: #604020 }
SPAN.keywordflow { color: #e08000 }
SPAN.comment { color: #800000 }
SPAN.preprocessor { color: #806020 }
SPAN.stringliteral { color: #002080 }
SPAN.charliteral { color: #008080 }
SPAN.vhdldigit { color: #ff00ff }
SPAN.vhdlchar { color: #000000 }
SPAN.vhdlkeyword { color: #700070 }
SPAN.vhdllogic { color: #ff0000 }
.mdescLeft {
padding: 0px 8px 4px 8px;
font-size: 80%;
font-style: italic;
background-color: #FAFAFA;
border-top: 1px none #E0E0E0;
border-right: 1px none #E0E0E0;
border-bottom: 1px none #E0E0E0;
border-left: 1px none #E0E0E0;
margin: 0px;
}
.mdescRight {
padding: 0px 8px 4px 8px;
font-size: 80%;
font-style: italic;
background-color: #FAFAFA;
border-top: 1px none #E0E0E0;
border-right: 1px none #E0E0E0;
border-bottom: 1px none #E0E0E0;
border-left: 1px none #E0E0E0;
margin: 0px;
}
.memItemLeft {
padding: 1px 0px 0px 8px;
margin: 4px;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-color: #E0E0E0;
border-right-color: #E0E0E0;
border-bottom-color: #E0E0E0;
border-left-color: #E0E0E0;
border-top-style: solid;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
background-color: #FAFAFA;
font-size: 80%;
}
.memItemRight {
padding: 1px 8px 0px 8px;
margin: 4px;