root/doc/html/random_8h.html @ 353

Revision 353, 29.1 kB (checked in by smidl, 16 years ago)

doc

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3<title>mixpp: random.h File Reference</title>
4<link href="tabs.css" rel="stylesheet" type="text/css">
5<link href="doxygen.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.5.8 -->
8<script type="text/javascript">
9<!--
10function changeDisplayState (e){
11  var num=this.id.replace(/[^[0-9]/g,'');
12  var button=this.firstChild;
13  var sectionDiv=document.getElementById('dynsection'+num);
14  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
15    sectionDiv.style.display='block';
16    button.src='open.gif';
17  }else{
18    sectionDiv.style.display='none';
19    button.src='closed.gif';
20  }
21}
22function initDynSections(){
23  var divs=document.getElementsByTagName('div');
24  var sectionCounter=1;
25  for(var i=0;i<divs.length-1;i++){
26    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
27      var header=divs[i];
28      var section=divs[i+1];
29      var button=header.firstChild;
30      if (button!='IMG'){
31        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
32        button=document.createElement('img');
33        divs[i].insertBefore(button,divs[i].firstChild);
34      }
35      header.style.cursor='pointer';
36      header.onclick=changeDisplayState;
37      header.id='dynheader'+sectionCounter;
38      button.src='closed.gif';
39      section.id='dynsection'+sectionCounter;
40      section.style.display='none';
41      section.style.marginLeft='14px';
42      sectionCounter++;
43    }
44  }
45}
46window.onload = initDynSections;
47-->
48</script>
49<div class="navigation" id="top">
50  <div class="tabs">
51    <ul>
52      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
53      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
54      <li><a href="modules.html"><span>Modules</span></a></li>
55      <li><a href="annotated.html"><span>Classes</span></a></li>
56      <li class="current"><a href="files.html"><span>Files</span></a></li>
57    </ul>
58  </div>
59  <div class="tabs">
60    <ul>
61      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
62      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
63    </ul>
64  </div>
65</div>
66<div class="contents">
67<h1>random.h File Reference</h1>Definition of classes for random number generators. 
68<a href="#_details">More...</a>
69<p>
70<code>#include &lt;<a class="el" href="random__dsfmt_8h-source.html">itpp/base/random_dsfmt.h</a>&gt;</code><br>
71<code>#include &lt;<a class="el" href="operators_8h-source.html">itpp/base/operators.h</a>&gt;</code><br>
72
73<p>
74<a href="random_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
75<tr><td></td></tr>
76<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
77<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Bernoulli__RNG.html">itpp::Bernoulli_RNG</a></td></tr>
78
79<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Bernoulli distribution.  <a href="classitpp_1_1Bernoulli__RNG.html#_details">More...</a><br></td></tr>
80<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1I__Uniform__RNG.html">itpp::I_Uniform_RNG</a></td></tr>
81
82<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Integer uniform distribution<p>
83Example: Generation of random uniformly distributed integers in the interval [0,10].  <a href="classitpp_1_1I__Uniform__RNG.html#_details">More...</a><br></td></tr>
84<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Uniform__RNG.html">itpp::Uniform_RNG</a></td></tr>
85
86<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Uniform distribution.  <a href="classitpp_1_1Uniform__RNG.html#_details">More...</a><br></td></tr>
87<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Exponential__RNG.html">itpp::Exponential_RNG</a></td></tr>
88
89<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Exponential distribution.  <a href="classitpp_1_1Exponential__RNG.html#_details">More...</a><br></td></tr>
90<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Normal__RNG.html">itpp::Normal_RNG</a></td></tr>
91
92<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Normal distribution<p>
93Normal (Gaussian) random variables, using a simplified Ziggurat method.  <a href="classitpp_1_1Normal__RNG.html#_details">More...</a><br></td></tr>
94<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Gamma__RNG.html">itpp::Gamma_RNG</a></td></tr>
95
96<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gamma distribution<p>
97Generate samples from Gamma(alpha,beta) density, according to the following equation: <p class="formulaDsp">
98<img class="formulaDsp" alt="\[ x \sim \Gamma(\alpha,\beta) = \frac{\beta^\alpha}{\Gamma(\alpha)}x^{\alpha-1} \exp(-\beta x) \]" src="form_184.png">
99<p>
100<a href="classitpp_1_1Gamma__RNG.html#_details">More...</a><br></td></tr>
101<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Laplace__RNG.html">itpp::Laplace_RNG</a></td></tr>
102
103<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Laplacian distribution.  <a href="classitpp_1_1Laplace__RNG.html#_details">More...</a><br></td></tr>
104<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Complex__Normal__RNG.html">itpp::Complex_Normal_RNG</a></td></tr>
105
106<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A Complex Normal Source.  <a href="classitpp_1_1Complex__Normal__RNG.html#_details">More...</a><br></td></tr>
107<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1AR1__Normal__RNG.html">itpp::AR1_Normal_RNG</a></td></tr>
108
109<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Filtered normal distribution.  <a href="classitpp_1_1AR1__Normal__RNG.html#_details">More...</a><br></td></tr>
110<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Weibull__RNG.html">itpp::Weibull_RNG</a></td></tr>
111
112<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Weibull distribution.  <a href="classitpp_1_1Weibull__RNG.html#_details">More...</a><br></td></tr>
113<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Rayleigh__RNG.html">itpp::Rayleigh_RNG</a></td></tr>
114
115<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Rayleigh distribution.  <a href="classitpp_1_1Rayleigh__RNG.html#_details">More...</a><br></td></tr>
116<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Rice__RNG.html">itpp::Rice_RNG</a></td></tr>
117
118<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Rice distribution.  <a href="classitpp_1_1Rice__RNG.html#_details">More...</a><br></td></tr>
119<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
120<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef DSFMT_19937_RNG&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g34eae65e1f1e6c0faced9e9d64eb67b4">itpp::Random_Generator</a></td></tr>
121
122<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Base class for random (stochastic) sources.<p>
123Random_Generator is a typedef of <a class="el" href="classitpp_1_1DSFMT.html" title="C++ implementation of dSFMT random number generatorThe DSFMT class implements parts...">DSFMT</a> class specialization using 19937 generation period.  <a href="group__randgen.html#g34eae65e1f1e6c0faced9e9d64eb67b4"></a><br></td></tr>
124<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g0f1ab3d74408366b16f8d5bbbaaeea08"></a><!-- doxytag: member="random.h::Gauss_RNG" ref="g0f1ab3d74408366b16f8d5bbbaaeea08" args="" -->
125typedef Normal_RNG&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g0f1ab3d74408366b16f8d5bbbaaeea08">itpp::Gauss_RNG</a></td></tr>
126
127<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gauss_RNG is the same as Normal Source. <br></td></tr>
128<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gc65f0ea3d6ed038725b735070892c7ab"></a><!-- doxytag: member="random.h::AR1_Gauss_RNG" ref="gc65f0ea3d6ed038725b735070892c7ab" args="" -->
129typedef AR1_Normal_RNG&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#gc65f0ea3d6ed038725b735070892c7ab">itpp::AR1_Gauss_RNG</a></td></tr>
130
131<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">AR1_Gauss_RNG is the same as <a class="el" href="classitpp_1_1AR1__Normal__RNG.html" title="Filtered normal distribution.">AR1_Normal_RNG</a>. <br></td></tr>
132<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
133<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g64aa8e9e5f9e1a7752ec3daa12a6a0d3"></a><!-- doxytag: member="random.h::RNG_reset" ref="g64aa8e9e5f9e1a7752ec3daa12a6a0d3" args="(unsigned int seed)" -->
134void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g64aa8e9e5f9e1a7752ec3daa12a6a0d3">itpp::RNG_reset</a> (unsigned int seed)</td></tr>
135
136<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the seed of the Global Random Number Generator. <br></td></tr>
137<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g2dee3c934eeb7a720cb72316fd959c12"></a><!-- doxytag: member="random.h::RNG_reset" ref="g2dee3c934eeb7a720cb72316fd959c12" args="()" -->
138void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g2dee3c934eeb7a720cb72316fd959c12">itpp::RNG_reset</a> ()</td></tr>
139
140<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the seed of the Global Random Number Generator to the same as last time. <br></td></tr>
141<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gdf5dd6e879881b651896c213e6efd3ba"></a><!-- doxytag: member="random.h::RNG_randomize" ref="gdf5dd6e879881b651896c213e6efd3ba" args="()" -->
142void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#gdf5dd6e879881b651896c213e6efd3ba">itpp::RNG_randomize</a> ()</td></tr>
143
144<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set a random seed for the Global Random Number Generator. <br></td></tr>
145<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g3bf0d34015b9f7de0233543518527571"></a><!-- doxytag: member="random.h::RNG_get_state" ref="g3bf0d34015b9f7de0233543518527571" args="(ivec &amp;state)" -->
146void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g3bf0d34015b9f7de0233543518527571">itpp::RNG_get_state</a> (<a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> &amp;state)</td></tr>
147
148<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Save the current state of the generator in a vector. <br></td></tr>
149<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g461aec689ec83188592784d97a2b4944"></a><!-- doxytag: member="random.h::RNG_set_state" ref="g461aec689ec83188592784d97a2b4944" args="(const ivec &amp;state)" -->
150void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g461aec689ec83188592784d97a2b4944">itpp::RNG_set_state</a> (const <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> &amp;state)</td></tr>
151
152<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Resume the state of the generator from previously saved vector. <br></td></tr>
153<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g5aa06887cf1fd3301b040987924068f0"></a><!-- doxytag: member="random.h::randb" ref="g5aa06887cf1fd3301b040987924068f0" args="(void)" -->
154bin&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g5aa06887cf1fd3301b040987924068f0">itpp::randb</a> (void)</td></tr>
155
156<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random bit (equally likely 0s and 1s). <br></td></tr>
157<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g0930c061b843c2233c6622595be42eaf"></a><!-- doxytag: member="random.h::randb" ref="g0930c061b843c2233c6622595be42eaf" args="(int size, bvec &amp;out)" -->
158void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g0930c061b843c2233c6622595be42eaf">itpp::randb</a> (int size, <a class="el" href="classitpp_1_1Vec.html#e10151f44bbabf17b670a9493d8088cf">bvec</a> &amp;out)</td></tr>
159
160<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random bit vector (equally likely 0s and 1s). <br></td></tr>
161<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ged2de689e8203b351b30e850d5c138a6"></a><!-- doxytag: member="random.h::randb" ref="ged2de689e8203b351b30e850d5c138a6" args="(int size)" -->
162<a class="el" href="classitpp_1_1Vec.html#e10151f44bbabf17b670a9493d8088cf">bvec</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#ged2de689e8203b351b30e850d5c138a6">itpp::randb</a> (int size)</td></tr>
163
164<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random bit vector (equally likely 0s and 1s). <br></td></tr>
165<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gbf9ede8812e204b85fc1cdc8e4517e46"></a><!-- doxytag: member="random.h::randb" ref="gbf9ede8812e204b85fc1cdc8e4517e46" args="(int rows, int cols, bmat &amp;out)" -->
166void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#gbf9ede8812e204b85fc1cdc8e4517e46">itpp::randb</a> (int rows, int cols, <a class="el" href="mat_8h.html#f90acd1af41bf2d1d8a4bb23662fff69">bmat</a> &amp;out)</td></tr>
167
168<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random bit matrix (equally likely 0s and 1s). <br></td></tr>
169<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g2711f4c5927afc4e0aeb920007adfa1d"></a><!-- doxytag: member="random.h::randb" ref="g2711f4c5927afc4e0aeb920007adfa1d" args="(int rows, int cols)" -->
170<a class="el" href="mat_8h.html#f90acd1af41bf2d1d8a4bb23662fff69">bmat</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g2711f4c5927afc4e0aeb920007adfa1d">itpp::randb</a> (int rows, int cols)</td></tr>
171
172<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random bit matrix (equally likely 0s and 1s). <br></td></tr>
173<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g2c685c3170a003567543c620962fb44d"></a><!-- doxytag: member="random.h::randu" ref="g2c685c3170a003567543c620962fb44d" args="(void)" -->
174double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g2c685c3170a003567543c620962fb44d">itpp::randu</a> (void)</td></tr>
175
176<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random uniform (0,1) number. <br></td></tr>
177<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gc50bb2350abebb061c971dc75021f360"></a><!-- doxytag: member="random.h::randu" ref="gc50bb2350abebb061c971dc75021f360" args="(int size, vec &amp;out)" -->
178void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#gc50bb2350abebb061c971dc75021f360">itpp::randu</a> (int size, <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &amp;out)</td></tr>
179
180<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random uniform (0,1) vector. <br></td></tr>
181<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g7f371ec740044d6bbe027a40661b5928"></a><!-- doxytag: member="random.h::randu" ref="g7f371ec740044d6bbe027a40661b5928" args="(int size)" -->
182<a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g7f371ec740044d6bbe027a40661b5928">itpp::randu</a> (int size)</td></tr>
183
184<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random uniform (0,1) vector. <br></td></tr>
185<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g13d81185b2cfafbfd8cee70a5bf0de94"></a><!-- doxytag: member="random.h::randu" ref="g13d81185b2cfafbfd8cee70a5bf0de94" args="(int rows, int cols, mat &amp;out)" -->
186void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g13d81185b2cfafbfd8cee70a5bf0de94">itpp::randu</a> (int rows, int cols, <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &amp;out)</td></tr>
187
188<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random uniform (0,1) matrix. <br></td></tr>
189<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g7468ff48604f0bcc7e08b08f3d27d2fa"></a><!-- doxytag: member="random.h::randu" ref="g7468ff48604f0bcc7e08b08f3d27d2fa" args="(int rows, int cols)" -->
190<a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g7468ff48604f0bcc7e08b08f3d27d2fa">itpp::randu</a> (int rows, int cols)</td></tr>
191
192<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random uniform (0,1) matrix. <br></td></tr>
193<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g8d7b64e094607ed9f312e2436facddf1"></a><!-- doxytag: member="random.h::randi" ref="g8d7b64e094607ed9f312e2436facddf1" args="(int low, int high)" -->
194int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g8d7b64e094607ed9f312e2436facddf1">itpp::randi</a> (int low, int high)</td></tr>
195
196<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random integer in the interval [low,high]. <br></td></tr>
197<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g4e2de9076e8fc03543972ce7ce0ba3c2"></a><!-- doxytag: member="random.h::randi" ref="g4e2de9076e8fc03543972ce7ce0ba3c2" args="(int size, int low, int high)" -->
198<a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g4e2de9076e8fc03543972ce7ce0ba3c2">itpp::randi</a> (int size, int low, int high)</td></tr>
199
200<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random ivec with elements in the interval [low,high]. <br></td></tr>
201<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g23503b9d9f4d476cb0b5b0bc16a64c24"></a><!-- doxytag: member="random.h::randi" ref="g23503b9d9f4d476cb0b5b0bc16a64c24" args="(int rows, int cols, int low, int high)" -->
202<a class="el" href="classitpp_1_1Mat.html#9e0dd2f635e4bd0b28c09685d9c4f3bb">imat</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g23503b9d9f4d476cb0b5b0bc16a64c24">itpp::randi</a> (int rows, int cols, int low, int high)</td></tr>
203
204<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random imat with elements in the interval [low,high]. <br></td></tr>
205<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g4548e4c5e7b3687bbf1cf4d15d6a2eaa"></a><!-- doxytag: member="random.h::randray" ref="g4548e4c5e7b3687bbf1cf4d15d6a2eaa" args="(int size, double sigma=1.0)" -->
206<a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g4548e4c5e7b3687bbf1cf4d15d6a2eaa">itpp::randray</a> (int size, double sigma=1.0)</td></tr>
207
208<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random Rayleigh vector. <br></td></tr>
209<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g59d4c0350f23785130d41b89f9f8663a"></a><!-- doxytag: member="random.h::randrice" ref="g59d4c0350f23785130d41b89f9f8663a" args="(int size, double sigma=1.0, double s=1.0)" -->
210<a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g59d4c0350f23785130d41b89f9f8663a">itpp::randrice</a> (int size, double sigma=1.0, double s=1.0)</td></tr>
211
212<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random Rice vector (See J.G. Poakis, "Digital Communications, 3rd ed." p.47). <br></td></tr>
213<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g315a5e1fd092db2f587acf8ee39b7e5a"></a><!-- doxytag: member="random.h::randexp" ref="g315a5e1fd092db2f587acf8ee39b7e5a" args="(int size, double lambda=1.0)" -->
214<a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g315a5e1fd092db2f587acf8ee39b7e5a">itpp::randexp</a> (int size, double lambda=1.0)</td></tr>
215
216<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random complex Gaussian vector. <br></td></tr>
217<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g9ecf5af23567f51abc9af737fdbd872a"></a><!-- doxytag: member="random.h::randn" ref="g9ecf5af23567f51abc9af737fdbd872a" args="(void)" -->
218double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g9ecf5af23567f51abc9af737fdbd872a">itpp::randn</a> (void)</td></tr>
219
220<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random Gaussian (0,1) variable. <br></td></tr>
221<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g616ba8acf49bc0d2c2a61eb1073623e2"></a><!-- doxytag: member="random.h::randn" ref="g616ba8acf49bc0d2c2a61eb1073623e2" args="(int size, vec &amp;out)" -->
222void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g616ba8acf49bc0d2c2a61eb1073623e2">itpp::randn</a> (int size, <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &amp;out)</td></tr>
223
224<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random Gaussian (0,1) vector. <br></td></tr>
225<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g1d6c0886ce845add07826fd360bdab45"></a><!-- doxytag: member="random.h::randn" ref="g1d6c0886ce845add07826fd360bdab45" args="(int size)" -->
226<a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g1d6c0886ce845add07826fd360bdab45">itpp::randn</a> (int size)</td></tr>
227
228<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random Gaussian (0,1) vector. <br></td></tr>
229<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g65f4890bc86840235f95c2acbea6b3cb"></a><!-- doxytag: member="random.h::randn" ref="g65f4890bc86840235f95c2acbea6b3cb" args="(int rows, int cols, mat &amp;out)" -->
230void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g65f4890bc86840235f95c2acbea6b3cb">itpp::randn</a> (int rows, int cols, <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &amp;out)</td></tr>
231
232<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random Gaussian (0,1) matrix. <br></td></tr>
233<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gea540712c17237806666c2dad0ed6f35"></a><!-- doxytag: member="random.h::randn" ref="gea540712c17237806666c2dad0ed6f35" args="(int rows, int cols)" -->
234<a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#gea540712c17237806666c2dad0ed6f35">itpp::randn</a> (int rows, int cols)</td></tr>
235
236<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random Gaussian (0,1) matrix. <br></td></tr>
237<tr><td class="memItemLeft" nowrap align="right" valign="top">std::complex&lt; double &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g3c0042e44132fb903d44e7c5a03f5db3">itpp::randn_c</a> (void)</td></tr>
238
239<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random complex Gaussian (0,1) variable.  <a href="group__randgen.html#g3c0042e44132fb903d44e7c5a03f5db3"></a><br></td></tr>
240<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g307273f122c93815641174fc75c9a985"></a><!-- doxytag: member="random.h::randn_c" ref="g307273f122c93815641174fc75c9a985" args="(int size, cvec &amp;out)" -->
241void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g307273f122c93815641174fc75c9a985">itpp::randn_c</a> (int size, <a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> &amp;out)</td></tr>
242
243<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random complex Gaussian (0,1) vector. <br></td></tr>
244<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gb83991583c36e80064a677df2b53739e"></a><!-- doxytag: member="random.h::randn_c" ref="gb83991583c36e80064a677df2b53739e" args="(int size)" -->
245<a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#gb83991583c36e80064a677df2b53739e">itpp::randn_c</a> (int size)</td></tr>
246
247<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random complex Gaussian (0,1) vector. <br></td></tr>
248<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g69f4508d8f1a63f8a7f637aaac0290e4"></a><!-- doxytag: member="random.h::randn_c" ref="g69f4508d8f1a63f8a7f637aaac0290e4" args="(int rows, int cols, cmat &amp;out)" -->
249void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g69f4508d8f1a63f8a7f637aaac0290e4">itpp::randn_c</a> (int rows, int cols, <a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> &amp;out)</td></tr>
250
251<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random complex Gaussian (0,1) matrix. <br></td></tr>
252<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g5c754dcd3476e028692bd13eb0cc548d"></a><!-- doxytag: member="random.h::randn_c" ref="g5c754dcd3476e028692bd13eb0cc548d" args="(int rows, int cols)" -->
253<a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__randgen.html#g5c754dcd3476e028692bd13eb0cc548d">itpp::randn_c</a> (int rows, int cols)</td></tr>
254
255<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a random complex Gaussian (0,1) matrix. <br></td></tr>
256</table>
257<hr><a name="_details"></a><h2>Detailed Description</h2>
258Definition of classes for random number generators.
259<p>
260<dl class="author" compact><dt><b>Author:</b></dt><dd>Tony Ottosson and Adam Piatyszek</dd></dl>
261-------------------------------------------------------------------------<p>
262Copyright (C) 1995-2008 (see AUTHORS file for a list of contributors)<p>
263This file is part of IT++ - a C++ library of mathematical, signal processing, speech processing, and communications classes and functions.<p>
264IT++ is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<p>
265IT++ is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.<p>
266You should have received a copy of the GNU General Public License along with IT++. If not, see &lt;<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>&gt;.<p>
267------------------------------------------------------------------------- </div>
268<hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:14 2009 for mixpp by&nbsp;
269<a href="http://www.doxygen.org/index.html">
270<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
271</body>
272</html>
Note: See TracBrowser for help on using the browser.