[353] | 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: itpp::Uniform_RNG Class 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 | <!-- |
---|
| 10 | function 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 | } |
---|
| 22 | function 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 | } |
---|
| 46 | window.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 Page</span></a></li> |
---|
| 53 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
| 54 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
| 55 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
| 56 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 57 | </ul> |
---|
| 58 | </div> |
---|
| 59 | <div class="tabs"> |
---|
| 60 | <ul> |
---|
| 61 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
| 62 | <li><a href="classes.html"><span>Class Index</span></a></li> |
---|
| 63 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 64 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 65 | </ul> |
---|
| 66 | </div> |
---|
| 67 | <div class="navpath"><b>itpp</b>::<a class="el" href="classitpp_1_1Uniform__RNG.html">Uniform_RNG</a> |
---|
| 68 | </div> |
---|
| 69 | </div> |
---|
| 70 | <div class="contents"> |
---|
| 71 | <h1>itpp::Uniform_RNG Class Reference<br> |
---|
| 72 | <small> |
---|
| 73 | [<a class="el" href="group__randgen.html">Random Number Generation</a>]</small> |
---|
| 74 | </h1><!-- doxytag: class="itpp::Uniform_RNG" -->Uniform distribution. |
---|
| 75 | <a href="#_details">More...</a> |
---|
| 76 | <p> |
---|
| 77 | <code>#include <<a class="el" href="random_8h-source.html">random.h</a>></code> |
---|
| 78 | <p> |
---|
| 79 | |
---|
| 80 | <p> |
---|
| 81 | <a href="classitpp_1_1Uniform__RNG-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
| 82 | <tr><td></td></tr> |
---|
| 83 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
| 84 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="301be8e09a13951f9c2f68c44af3810f"></a><!-- doxytag: member="itpp::Uniform_RNG::Uniform_RNG" ref="301be8e09a13951f9c2f68c44af3810f" args="(double min=0, double max=1.0)" --> |
---|
| 85 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Uniform__RNG.html#301be8e09a13951f9c2f68c44af3810f">Uniform_RNG</a> (double min=0, double max=1.0)</td></tr> |
---|
| 86 | |
---|
| 87 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. Set min, max and seed. <br></td></tr> |
---|
| 88 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="315f0f487525c18cff6c02c339d591e7"></a><!-- doxytag: member="itpp::Uniform_RNG::setup" ref="315f0f487525c18cff6c02c339d591e7" args="(double min, double max)" --> |
---|
| 89 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Uniform__RNG.html#315f0f487525c18cff6c02c339d591e7">setup</a> (double min, double max)</td></tr> |
---|
| 90 | |
---|
| 91 | <tr><td class="mdescLeft"> </td><td class="mdescRight">set min and max <br></td></tr> |
---|
| 92 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0ed2b60584685b0c4567c10be41fe2ea"></a><!-- doxytag: member="itpp::Uniform_RNG::get_setup" ref="0ed2b60584685b0c4567c10be41fe2ea" args="(double &min, double &max) const " --> |
---|
| 93 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Uniform__RNG.html#0ed2b60584685b0c4567c10be41fe2ea">get_setup</a> (double &min, double &max) const </td></tr> |
---|
| 94 | |
---|
| 95 | <tr><td class="mdescLeft"> </td><td class="mdescRight">get parameters <br></td></tr> |
---|
| 96 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f21d969e99485aeeeb653a3f4d1d4a54"></a><!-- doxytag: member="itpp::Uniform_RNG::operator()" ref="f21d969e99485aeeeb653a3f4d1d4a54" args="()" --> |
---|
| 97 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Uniform__RNG.html#f21d969e99485aeeeb653a3f4d1d4a54">operator()</a> ()</td></tr> |
---|
| 98 | |
---|
| 99 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get one sample. <br></td></tr> |
---|
| 100 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="327eeba30a40a750edcc7ce83b92df9d"></a><!-- doxytag: member="itpp::Uniform_RNG::operator()" ref="327eeba30a40a750edcc7ce83b92df9d" args="(int n)" --> |
---|
| 101 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Uniform__RNG.html#327eeba30a40a750edcc7ce83b92df9d">operator()</a> (int n)</td></tr> |
---|
| 102 | |
---|
| 103 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get a sample vector. <br></td></tr> |
---|
| 104 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="845b0e4a3b1511d24de370752a3cf90f"></a><!-- doxytag: member="itpp::Uniform_RNG::operator()" ref="845b0e4a3b1511d24de370752a3cf90f" args="(int h, int w)" --> |
---|
| 105 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Uniform__RNG.html#845b0e4a3b1511d24de370752a3cf90f">operator()</a> (int h, int w)</td></tr> |
---|
| 106 | |
---|
| 107 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get a sample matrix. <br></td></tr> |
---|
| 108 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4864ca6abf74c86fcd92467c002fc057"></a><!-- doxytag: member="itpp::Uniform_RNG::sample" ref="4864ca6abf74c86fcd92467c002fc057" args="()" --> |
---|
| 109 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Uniform__RNG.html#4864ca6abf74c86fcd92467c002fc057">sample</a> ()</td></tr> |
---|
| 110 | |
---|
| 111 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get a Uniformly distributed [0,1) sample. <br></td></tr> |
---|
| 112 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3059402ccc1a0af044b9bd217a32f5c7"></a><!-- doxytag: member="itpp::Uniform_RNG::sample_vector" ref="3059402ccc1a0af044b9bd217a32f5c7" args="(int size, vec &out)" --> |
---|
| 113 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Uniform__RNG.html#3059402ccc1a0af044b9bd217a32f5c7">sample_vector</a> (int size, vec &out)</td></tr> |
---|
| 114 | |
---|
| 115 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get a Uniformly distributed [0,1) vector. <br></td></tr> |
---|
| 116 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bd0b24883ee383a4aa2d255b89af5ee4"></a><!-- doxytag: member="itpp::Uniform_RNG::sample_matrix" ref="bd0b24883ee383a4aa2d255b89af5ee4" args="(int rows, int cols, mat &out)" --> |
---|
| 117 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Uniform__RNG.html#bd0b24883ee383a4aa2d255b89af5ee4">sample_matrix</a> (int rows, int cols, mat &out)</td></tr> |
---|
| 118 | |
---|
| 119 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get a Uniformly distributed [0,1) matrix. <br></td></tr> |
---|
| 120 | </table> |
---|
| 121 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 122 | Uniform distribution. <hr>The documentation for this class was generated from the following files:<ul> |
---|
| 123 | <li><a class="el" href="random_8h-source.html">random.h</a><li><a class="el" href="random_8cpp.html">random.cpp</a></ul> |
---|
| 124 | </div> |
---|
| 125 | <hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:19 2009 for mixpp by |
---|
| 126 | <a href="http://www.doxygen.org/index.html"> |
---|
| 127 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
| 128 | </body> |
---|
| 129 | </html> |
---|