Package 'rwfec'

Title: R Wireless, Forward Error Correction
Description: Communications simulation package supporting forward error correction.
Authors: Alberto Gutierrez [aut, cre]
Maintainer: Alberto Gutierrez <[email protected]>
License: GPL (>= 2)
Version: 0.2
Built: 2024-11-06 03:40:21 UTC
Source: https://github.com/cran/rwfec

Help Index


Hello, World!

Description

Prints 'Hello, world!'.

Usage

hello()

Examples

hello()

Hello, Rcpp!

Description

Returns an R list containing the character vector c("foo", "bar") and the numeric vector c(0, 1).

Usage

rcpp_hello()

Examples

rcpp_hello()

sinc

Description

sinc(x) = 1 at x = 0, sinc(x) = sin(x)/x for x != 0

Usage

sinc(x)

Arguments

x

- input vector

Value

Response (Double, Numeric vector) of the sinc function applied to the input vector x.

Examples

x <- seq(-6*pi, 6*pi, by = pi/10)
p <- sinc(x)
plot(x/pi,p,ylim=c(-0.3,1.1), pch=19, cex=0.25, ylab="p", xlab="x*pi", type="l")
grid( col = "grey50", lty = "dotted")