⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node264.html

📁 相关搜索: ns2仿真结果分析 all-awk ns2 ns2 无限网络中awk文件 ... [2.tcl.rar] - 在ns2平台上实现对AODV协议的模拟
💻 HTML
字号:
<html><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><!--Converted with jLaTeX2HTML 2002 (1.62) JA patch-1.4patched version by:  Kenshi Muto, Debian Project.LaTeX2HTML 2002 (1.62),original version by:  Nikos Drakos, CBLU, University of Leeds* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan* with significant contributions from:  Jens Lippmann, Marek Rouchal, Martin Wilck and others --><HTML><HEAD><TITLE>22.6 Commands at a glance</TITLE><META NAME="description" CONTENT="22.6 Commands at a glance"><META NAME="keywords" CONTENT="everything"><META NAME="resource-type" CONTENT="document"><META NAME="distribution" CONTENT="global"><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><META NAME="Generator" CONTENT="jLaTeX2HTML v2002 JA patch-1.4"><META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"><LINK REL="STYLESHEET" HREF="everything.css" tppabs="http://www.isi.edu/nsnam/ns/doc/everything.css"><LINK REL="previous" HREF="node263.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node263.html"><LINK REL="up" HREF="node247.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node247.html"><LINK REL="next" HREF="node265.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node265.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html5348"  HREF="node265.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node265.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html5342"  HREF="node247.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node247.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html5338"  HREF="node263.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node263.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html5344"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html"><IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="file:/usr/share/latex2html/icons/contents.png"></A> <A NAME="tex2html5346"  HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html"><IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="file:/usr/share/latex2html/icons/index.png"></A> <BR><B> Next:</B> <A NAME="tex2html5349"  HREF="node265.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node265.html">23. Trace and Monitoring</A><B> Up:</B> <A NAME="tex2html5343"  HREF="node247.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node247.html">22. Mathematical Support</A><B> Previous:</B> <A NAME="tex2html5339"  HREF="node263.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node263.html">22.5 Some mathematical-support related</A> &nbsp <B>  <A NAME="tex2html5345"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html5347"  HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <BR><BR><!--End of Navigation Panel--><H1><A NAME="SECTION04260000000000000000"></A><A NAME="sec:mathcommand"></A><BR>22.6 Commands at a glance</H1><P>Following is a list of mathematical support related commands commonly usedin simulation scripts:<DIV ALIGN="LEFT"><TT>set rng [new RNG]</TT><BR>This creates a new random number generator.</DIV><P><DIV ALIGN="LEFT"><TT>$rng seed 0 or n</TT><BR>This command seeds the RNG. If 0 is specified, the RNG is seededheuristically. Otherwise the RNG is seeded with the value &lt;n&gt;.</DIV><P><DIV ALIGN="LEFT"><TT>$rng next-random</TT><BR>This returns the next random number from RNG.</DIV><P><DIV ALIGN="LEFT"><TT>$rng uniform a b</TT><BR>This returns a number uniformly distributed on &lt;a&gt; and &lt;b&gt;.</DIV><P><DIV ALIGN="LEFT"><TT>$rng integer k</TT><BR>This returns an integer uniformly distributed on 0 and k-1.</DIV><P><DIV ALIGN="LEFT"><TT>$rng exponential</TT><BR>This returns a number that has exponential distribution with average 1.</DIV><P><DIV ALIGN="LEFT"><TT>set rv [new Randomvariable/type of random-variable]</TT><BR>This creates an instance of a random variable object that generates random variables with specific distribution. The different types of random variables derived from the base class are:<BR>RandomVariable/Uniform, RandomVariable/Exponential, RandomVariable/Pareto,RandomVariable/Constant, RandomVariable/HyperExponential.Each of these distribution types are parameterized with values ofappropriate parameters. For details see section <A HREF="node260.html#sec:ranvar" tppabs="http://www.isi.edu/nsnam/ns/doc/node260.html#sec:ranvar">22.2</A> of thischapter.</DIV><P><DIV ALIGN="LEFT"><TT>$rv use-rng rng</TT><BR>This method is used to associated a random variable object with anon-default RNG. Otherwise by default, the random variable object isassociated with the default random number generator.</DIV><P><DIV ALIGN="LEFT"></DIV><P><HR><!--Navigation Panel--><A NAME="tex2html5348"  HREF="node265.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node265.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html5342"  HREF="node247.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node247.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html5338"  HREF="node263.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node263.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html5344"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html"><IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="file:/usr/share/latex2html/icons/contents.png"></A> <A NAME="tex2html5346"  HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html"><IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="file:/usr/share/latex2html/icons/index.png"></A> <BR><B> Next:</B> <A NAME="tex2html5349"  HREF="node265.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node265.html">23. Trace and Monitoring</A><B> Up:</B> <A NAME="tex2html5343"  HREF="node247.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node247.html">22. Mathematical Support</A><B> Previous:</B> <A NAME="tex2html5339"  HREF="node263.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node263.html">22.5 Some mathematical-support related</A> &nbsp <B>  <A NAME="tex2html5345"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html5347"  HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <!--End of Navigation Panel--><ADDRESS>2003-09-23</ADDRESS></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -