neurodsp.utils.data.create_times

neurodsp.utils.data.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
times1d array

Time indices.