Learn R Programming

gasper (version 1.1.3)

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)

Value

f output signal.

Arguments

eta

Smoothness parameter.

k

Smoothness parameter.

A

Adjacency matrix.

r

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