bilby.core.series.CoupledTimeAndFrequencySeries

class bilby.core.series.CoupledTimeAndFrequencySeries(duration=None, sampling_frequency=None, start_time=0)[source]

Bases: object

__init__(duration=None, sampling_frequency=None, start_time=0)[source]

A waveform generator

Parameters:
sampling_frequency: float, optional

The sampling frequency

duration: float, optional

Time duration of data

start_time: float, optional

Starting time of the time array

__call__(*args, **kwargs)

Call self as a function.

Methods

__init__([duration, sampling_frequency, ...])

A waveform generator

Attributes

duration

Allows one to set the time duration and automatically updates the frequency and time array.

frequency_array

Frequency array for the waveforms.

sampling_frequency

Allows one to set the sampling frequency and automatically updates the frequency and time array.

start_time

time_array

Time array for the waveforms.

property duration

Allows one to set the time duration and automatically updates the frequency and time array.

Returns:
float: The time duration.
property frequency_array

Frequency array for the waveforms. Automatically updates if sampling_frequency or duration are updated.

Returns:
array_like: The frequency array
property sampling_frequency

Allows one to set the sampling frequency and automatically updates the frequency and time array.

Returns:
float: The sampling frequency.
property time_array

Time array for the waveforms. Automatically updates if sampling_frequency or duration are updated.

Returns:
array_like: The time array