neurodsp.utils.data.create_samples

neurodsp.utils.data.create_samples(n_samples, start_val=0)[source]

Create an array of sample indices.

Parameters
n_secondsfloat

Signal duration, in seconds.

start_valint, optional, default: 0

Starting value for the samples definition.

Returns
samples1d array

Sample indices.