lmlib.utils.generator#

Generators for deterministic and stochastic (test) signals

Functions

gen_conv(base, template)

Convolves two signals.

gen_exp(K, decay[, k0])

Exponentially decaying signal generator

gen_pulse(K, ks)

Pulse signal generator

gen_rand_pulse(K, n_pulses[, length, seed])

Random pulse signal generator

gen_rand_walk(K[, seed])

Random walk generator

gen_rect(K, k_period[, k_on, duty_cycle, k0])

Rectangular (pulse wave) signal generator

gen_saw(K, k_period)

Sawtooth signal generator

gen_sine(K, k_periods[, amplitudes, k0s])

Generates multiple sinusoidal signals and adds them to one

gen_slopes(K, ks, deltas)

Slopes signal generator

gen_steps(K, ks, deltas)

Step signal generator

gen_tri(K, k_period)

Triangular signal generator

gen_wgn(K, sigma[, seed])

White Gaussian noise signal generator

k_period_to_omega(k_period)

Converts sample base period (samples per cycle) to the normalized frequency

load_csv(file[, K, k_start, channel])

loads csv data as a single-channel data shape

load_csv_mc(file[, K, k_start, channels])

loads csv data as a multi-channel data shape

load_data(name[, K, kstart, chIdx])

Loads a single channel signal from the signal catalog, see Signal Catalog.

load_data_mc(name[, K, kstart, chIdxs])

Loads a multi-channel signal from the signal catalog, see Signal Catalog.

load_lib_csv(filename[, K, k_start, channel])

loads a library-internal csv data file from the signal catalog as a single-channel data shape

load_lib_csv_mc(filename[, K, k_start, channels])

loads a library-internal csv data file from the signal catalog as a multi-channel data shape