Debian Codegraph @

docs/manual/_randomBernoulli-H-H_.html

raw symbols SCIP
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>randomBernoulli##</title>
3 <style>
4 td { padding-left: 5pt; padding-right: 5pt; }
5 th { padding-left: 5pt; padding-right: 5pt; }
6 code { white-space: pre-wrap; }
7 dd { white-space: pre-wrap; }
8 </style>
9 </head><body bgcolor="#FFFFFF">
10
11 <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Monaco,Courier" size=6 color="#999900"><b>
12 randomBernoulli##
13 </b></font></table></table>
14 <p>A function that can be used in <a href="Formulas.html">Formulas</a>.</p>
15 <h2>Syntax and semantics</h2>
16 <dl>
17 <dt><b><code><font size=+1>randomBernoulli##</font></code></b> (<i><code><font size=+1>nrow</font></code></i>, <i><code><font size=+1>ncol</font></code></i>, <i><code><font size=+1>p</font></code></i>)
18 <dd>generate <i><code><font size=+1>nrow</font></code></i> &#215; <i><code><font size=+1>ncol</font></code></i> independent Bernoulli-distributed (<a href="_randomBernoulli_.html"><b><code><font size=+1>randomBernoulli</font></code></b></a>) zeroes and ones.</dd>
19 <dt><b><code><font size=+1>randomBernoulli##</font></code></b> (<i><code><font size=+1>model##</font></code></i>, <i><code><font size=+1>p</font></code></i>)
20 <dd>create a matrix with the same number of rows and columns as <i><code><font size=+1>model##</font></code></i>, and fill all cells with independent Bernoulli-distributed zeroes and ones. This is shorthand for doing</dd>
21 </dl>
22 <code> <b>randomBernoulli##</b> (<a href="_numberOfRows_.html">numberOfRows</a> (<i>model##</i>), <a href="_numberOfColumns_.html">numberOfColumns</a> (<i>model##</i>), <i>p</i>)<br></code>
23 <hr>
24 <address>
25 <p>© Paul Boersma 2023,2024</p>
26 </address>
27 </body>
28 </html>