Description Usage Arguments Details Octave Documentation for randp See Also Examples
This function wraps a call to the standard Octave function randp
,
which is redefined by RcppOctave
to call the R base function
rpois
.
This enables to exactly reproduce stochastic computations in R and Octave,
without changing the original Octave/Matlab code.
See o_runif
for more details.
1 | o_rpois(n, p = n, lambda)
|
n |
number of output rows |
p |
number of output columns (default to |
lambda |
Mean of the Poisson distribution |
This function calls the Octave function randp
as provided by
RcppOctave
, which returns the draws as double.
The result is converted into integer to match the behaviour of
rpois
[Generated from Octave-\Sexpr{RcppOctave::o_version()} on \Sexpr{Sys.time()}]
rpois
Other orandom: o_rexp
;
o_rgamma
; o_rnorm
;
o_runif
1 2 3 4 5 6 7 8 9 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.