mockseries.signal.signal
Signal#
Interface representing any type of signal.
generate#
Generate a signal from a list of times.
preview_year#
Plot one year of signal with a day granularity.
Arguments:
num_years- Number of years to plot.start_time- Time from which to start. If None, defaults to current datetime.
preview_month#
Plot one month of signal with an hour granularity.
Arguments:
num_months- Number of months to plot.start_time- Time from which to start. If None, defaults to current datetime.
preview_week#
Plot one week of signal with an hour granularity.
Arguments:
num_weeks- Number of weeks to plot.start_time- Time from which to start. If None, defaults to current datetime.
preview_day#
Plot one day of signal with a minute granularity.
Arguments:
num_days- Number of days to plot.start_time- Time from which to start. If None, defaults to current datetime.
preview_hour#
Plot one hour of signal with a second granularity.
Arguments:
num_hours- Number of hours to plot.start_time- Time from which to start. If None, defaults to current datetime.
preview_minute#
Plot one minute of signal with a centisecond granularity.
Arguments:
num_minutes- Number of hours to plot.start_time- Time from which to start. If None, defaults to current datetime.
__add__#
Add two signals.
__mul__#
Multiply two signals.
__sub__#
Subtract one signal from another.
__neg__#
Get the opposite of a signal.
__rmul__#
Multiplies by a constant.
__radd__#
Adds a flat component.