o_rexp: Drawing from R Exponential Distribution in Octave

Description Usage Arguments Octave Documentation for rande See Also Examples

View source: R/random.R

Description

This function wraps a call to the standard Octave function rande, which is redefined by RcppOctave to call the R base function rexp. This enables to exactly reproduce stochastic computations in R and Octave, without changing the original Octave/Matlab code. See o_runif for more details.

Usage

1
o_rexp(n, p = n)

Arguments

n

number of output rows

p

number of output columns (default to n)

Octave Documentation for rande

\Sexpr[results=rd,stage=render]{if( .Platform$OS.type != 'windows' || .Platform$r_arch != 'x64' ) RcppOctave::o_help(rande, format='rd')}

[Generated from Octave-\Sexpr{RcppOctave::o_version()} on \Sexpr{Sys.time()}]

See Also

rexp

Other orandom: o_rgamma, o_rnorm, o_rpois, o_runif

Examples

1
2
3
4
5
6
7
8
9
# 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)

renozao/RcppOctave documentation built on May 27, 2019, 5:52 a.m.