bspysmg.utils.inputs#

File containing different methods for generating input waves for sampling purposes.

Functions

generate_sawtooth_multiple(input_range, n_points)

Generates a simple sawtooth for a single channel (electrode).

generate_sawtooth_simple(v_low, v_high, point_no)

Generates a simple sawtooth for a single channel (electrode).

generate_sinewave(n, fs, amplitude[, phase])

Generates a sine wave that can be used for the input data.

get_frequency(configs)

Generate input frequency for each electrode.

get_input_generator(configs)

Returns the configurations dictionary for generating input signal wave and also returns the function that will be used for generating the signal.

get_random_phase([activation_electrode_no])

Generates a list containing different random phases for each activation electrodes.

load_configs(config_dict)

Creates a dictionary with sampling configurations.

sawtooth_wave(time_points, frequency, phase, ...)

Generates a sawtooth wave.

sine_wave(time_points, frequency, phase, ...)

Generates a sine wave.