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

📄 mf_uniform.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
字号:
{smcl}
{* 03may2005}{...}
{cmd:help mata uniform()}
{hline}
{* index random numbers}{...}
{* index uniformly distributed random numbers}{...}
{* index uniform()}{...}
{* index setuniformseed()}{...}

{title:Title}

{p 4 8 2}
{bf:[M-5] uniform() -- Uniformly distributed random numbers}


{title:Syntax}

{p 8 12 2}
{it:real matrix}{bind:  }
{cmd:uniform(}{it:real scalar r}{cmd:,} {it:real scalar c}{cmd:)}

{p 8 12 2}
{it:string scalar}
{cmd:uniformseed()}

{p 8 12 2}
{it:void}{bind:         }
{cmd:uniformseed(}{it:string scalar newseed}{cmd:)}

{p 8 12 2}
{it:void}{bind:         }
{cmd:uniformseed(}{it:real scalar newseed}{cmd:)}


{title:Description}

{p 4 4 2}
{cmd:uniform(}{it:r}{cmd:,} {it:c}{cmd:)} returns an {it:r x c} real matrix
containing uniformly distributed random numbers 0 < element < 1.
{cmd:uniform()} is the same function as Stata's {cmd:uniform()} function.

{p 4 4 2}
{cmd:uniformseed()} returns {cmd:uniform()}'s current seed in encrypted,
string form.  {cmd:uniformseed()} returns the same thing as Stata's
{cmd:c(seed)}; see {bf:{help generate:[D] generate}} and 
{bf:{help creturn:[P] creturn}}.

{p 4 4 2}
{cmd:uniformseed(}{it:newseed}{cmd:)} sets the seed:  a string previously
obtained from {cmd:uniformseed()} may be specified for the argument, or 
an integer number may be specified.  {cmd:uniformseed()} has the 
same effect as Stata's {cmd:set} {cmd:seed} command; see 
{bf:{help generate:[D] generate}}.


{title:Conformability}

    {cmd:uniform(}{it:r}{cmd:,} {it:c}{cmd:)}:
		{it:r}:  1 {it:x} 1
		{it:c}:  1 {it:x} 1
	   {it:result}:  {it:r x c}

    {cmd:uniformseed()}:
	   {it:result}:  1 {it:x} 1

    {cmd:uniformseed(}{it:newseed}{cmd:)}:
	  {it:newseed}:  1 {it:x} 1
	   {it:result}:  {it:void}


{title:Diagnostics}

{p 4 4 2}
{cmd:uniform(}{it:r}{cmd:,} {it:c}{cmd:)} aborts with error if 
{it:r}<0 or {it:c<0}.

{p 4 4 2}
{cmd:uniformseed(}{it:seed}{cmd:)} aborts with error if a string seed is
specified and it is malformed (was not obtained from {cmd:uniformseed()}).


{title:Source code}

{p 4 4 2}
Functions are built-in.


{title:Also see}

{p 4 13 2}
Manual:  {hi:[M-5] uniform()}

{p 4 13 2}
Online:  help for 
{bf:{help m4_scalar:[M-4] scalar}},
{bf:{help m4_statistical:[M-4] statistical}},
{bf:{help m4_matrix:[M-4] matrix}}
{p_end}

⌨️ 快捷键说明

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