Learn R Programming

rv (version 0.949)

outer.rv: Outer Product of Random Arrays

Description

outer.rv

Usage

outer.rv(X, Y=NULL, FUN="*", ...)

Arguments

X
First argument for function FUN
Y
Second argument for function FUN; if missing, X is used instead
FUN
a function to use on the outer products; a character string or a function
...
optional arguments to be passed to FUN

Value

  • A random array.

Details

Implements the outer product for random arrays.

Note. outer is not a generic function; thus outer(x) will not work if x is an rv object. You must write outer.rv(x) explicitly.

See the function outer for further details.

References

Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.

Examples

Run this code
#

Run the code above in your browser using DataLab