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.
randsignal(eta, k, A, r)
f
output signal.
Smoothness parameter.
Smoothness parameter.
Adjacency matrix.
Optional argument corresponding to the largest eigenvalue of A (in magnitude).