Learn R Programming

futile.matrix (version 1.2.7)

rcomp: Generate random complex numbers

Description

Generate random complex numbers using the specified distribution. By default rnorm is used.

Arguments

n

Length of the output vector

dist

The distribution for the random number genertor

Value

A vector of random numbers

Usage

rcomp(n, dist)

rcomp(n, dist=rnorm)

Details

This function is used primarily to generate random matrices.

Examples

Run this code
# NOT RUN {
rcomp(10)
rcomp(10, runif)
# }

Run the code above in your browser using DataLab