-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy patho_rexp.Rd
52 lines (43 loc) · 1.3 KB
/
o_rexp.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/random.R
\name{o_rexp}
\alias{o_rexp}
\title{Drawing from R Exponential Distribution in Octave}
\usage{
o_rexp(n, p = n)
}
\arguments{
\item{n}{number of output rows}
\item{p}{number of output columns (default to \code{n})}
}
\description{
This function wraps a call to the standard Octave function \code{rande},
which is redefined by \code{RcppOctave} to call the R base function
\code{\link[stats]{rexp}}.
This enables to exactly reproduce stochastic computations in R and Octave,
without changing the original Octave/Matlab code.
See \code{\link{o_runif}} for more details.
}
\section{Octave Documentation for \emph{rande}}{
\Sexpr[results=rd,stage=render]{if( .Platform$OS.type != 'windows' || .Platform$r_arch != 'x64' ) RcppOctave::o_help(rande, format='rd')}
\emph{[Generated from Octave-\Sexpr{RcppOctave::o_version()} on \Sexpr{Sys.time()}]}
}
\examples{
\dontshow{
options(R_CHECK_RUNNING_EXAMPLES_=TRUE) ## roxygen generated flag
}
# Draw random exponential values (in vector form)
set.seed(123)
o_rexp(1)
o_rexp(1, 10)
# Draw random normal values (in matrix form)
set.seed(123)
o_rexp(2)
o_rexp(2, 5)
}
\seealso{
rexp
Other orandom: \code{\link{o_rgamma}},
\code{\link{o_rnorm}}, \code{\link{o_rpois}},
\code{\link{o_runif}}
}