carpet/datasets.py
def _generate_1d_signal(A, L, s=0.1, snr=1.0, rng=None):
    """ Generate one 1d synthetic signal. """
    m = L.shape[0]
    z = _generate_dirac(m=m, s=s, rng=rng)
    u = z.dot(L)
    x, _ = add_gaussian_noise(signal=u.dot(A), snr=snr, random_state=rng)
    return x[None, :], u[None, :], z[None, :]
 Generate one 1d synthetic signal. 
Generate one 1d synthetic signal.
Generate one 1d synthetic signal .
def _generate_1d_signal(A, L, s=0.1, snr=1.0, rng=None):
    m = L.shape[0]
    z = _generate_dirac(m=m, s=s, rng=rng)
    u = z.dot(L)
    x, _ = add_gaussian_noise(signal=u.dot(A), snr=snr, random_state=rng)
    return x[None, :], u[None, :], z[None, :]
def _generate_1d_signal ( A , L , s = 0.1 , snr = 1.0 , rng = None ) : m = L . shape [ 0 ] z = _generate_dirac ( m = m , s = s , rng = rng ) u = z . dot ( L ) x , _ = add_gaussian_noise ( signal = u . dot ( A ) , snr = snr , random_state = rng ) return x [ None , : ] , u [ None , : ] , z [ None , : ]
Generate one 1d synthetic signal.
Generate one 1d synthetic signal .
""" Generate one 1d synthetic signal. """
A
L
s
snr
rng