Learn R Programming

gasper (version 1.1.1)

randsignal: Generate random signal with varying regularity.

Description

Generate \(f = A^k x_{\eta} / r^k\), with A the adjacency matrix and \(x_{\eta}\) realization of Bernoulli random variables of parameter \(\eta\) and \(r\) the largest eigenvalue (in magnitude). The generation is carried out in sparse matrices in order to scale up.

Usage

randsignal(eta, k, A, r)

Arguments

eta

Smoothness parameter.

k

Smoothness parameter.

A

Adjacency matrix.

r

Optional argument corresponding to the largest eigenvalue of A (in magnitude).

Value

f output signal.