neurodsp.utils.create_times

neurodsp.utils.create_times(n_seconds, fs, start_val=0.0)[source]

Create an array of time indices.

Parameters
n_secondsfloat

Signal duration, in seconds.

fsfloat

Signal sampling rate, in Hz.

start_valfloat, optional, default: 0

Starting value for the time definition.

Returns
1d array

Time indices.