export_with_sampling_rate

Signal.export_with_sampling_rate(sampling_rate)

Return the values of the signal sampled at a constant rate given by the sampling rate provided.

Parameters:

sampling_rate (float) – The rate at which the signal is sampled (that is, the inverse of the duration of each segment of the discretized signal). It must be positive and larger than the inverse of the duration.

Returns:

An array with the values of the signal sampled at equal intervals. The value of the signal in each segment corresponds to the value of the function at the center of that segment.

Return type:

np.ndarray

Warning

If the inverse of the sampling rate passed doesn’t exactly divide the total duration of the signal, this function will round the number of segments of the discretized output to the nearest number that is an integer multiple of the inverse of the sampling rate.