module documentation

Undocumented

Function generate_time_vector Generates an array with time points at sampling rate fs with start- and end-time
Function get_sampling_frequency Compute sampling frequency from t when fs is None, else simply returns fs
Function position_and_length_to_gamma_t Small helper to get start- and end-time from center-position and duration
Function start_and_duration_to_gamma_t Small helper to get start- and end-time from start and duration
def generate_time_vector(start, end, fs): (source)

Generates an array with time points at sampling rate fs with start- and end-time

Parameters
start:floatstart time in seconds
end:floatend time in seconds (non-inclusive)
fs:int|floatsampling rate
Returns
np.ndarraynumpy array with time points
def get_sampling_frequency(fs, t): (source)

Compute sampling frequency from t when fs is None, else simply returns fs

Parameters
fs:(int|float)|Nonesampling frequency
t:Union[np.ndarray, List[float]]time vector
Returns
int
def position_and_length_to_gamma_t(position, duration): (source)

Small helper to get start- and end-time from center-position and duration

Parameters
position:floatcenter position
duration:floatduration
Returns
Annotated[List[float], ExactLen(2)]list with two indices; start and end
def start_and_duration_to_gamma_t(start, duration): (source)

Small helper to get start- and end-time from start and duration

Parameters
start:float
duration:float
Returns
Annotated[List[float], ExactLen(2)]list with two indices; start and end