Learn R Programming

rwirelesscom (version 1.4.3)

fNo: AWGN

Description

Generates a vector of normally distributed noise samples with mean of zero and noise spectral density (No/2), a.k.a. AWGN.

Usage

fNo(N, No, type = "real")

Arguments

N
- number of noise samples
No
- noise spectral density
type
- "real" or "complex" defaults to real

Value

returns a vector of distributed noise samples of length N, mean of zero and variance of No/2

See Also

Other rwirelesscom functions: eyediagram; f16pskdemod; f16pskmod; f16qamdemod; f16qammod; f64qamdemod; f64qammod; f8pskdemod; f8pskmod; fbpskdemod; fbpskmod; fqpskdemod; iqdensityplot; iqscatterplot; stemplot

Examples

Run this code
n <- fNo(N=10,No=10)
bits <- sample(0:1,10, replace=TRUE)
s=fbpskmod(bits)
r=s+n

n <- fNo(N=20,No=10,type="complex")
bits <- sample(0:1,20, replace=TRUE)
s=fqpskmod(bits)
r=s+n

Run the code above in your browser using DataLab