pashehnet.sensors.sources.chirp#

Module Contents#

Classes#

ChirpSource

Frequency-swept cosine generator. See: https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.chirp.html

API#

class pashehnet.sensors.sources.chirp.ChirpSource(t, f0, t1, f1, method='linear', phi=0, vertex_zero=True)#

Bases: pashehnet.sensors.sources.base.SensorSourceBase

Frequency-swept cosine generator. See: https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.chirp.html

Initialization

CTOR

Parameters:
  • t – array_like; Times at which to evaluate the waveform

  • f0 – float; Frequency (e.g. Hz) at time t=0

  • t1 – float; Time at which f1 is specified

  • f1 – float; Frequency (e.g. Hz) of the waveform at time t1

  • method – {‘linear’, ‘quadratic’, ‘logarithmic’, ‘hyperbolic’}, optional. Kind of frequency sweep. If not given, linear is assumed. See scipy.signal.chirp notes for more details.

  • phi – float, optional; Phase offset, in degrees. Default is 0

  • vertex_zero – bool, optional; This parameter is only used when method is ‘quadratic’. It determines whether the vertex of the parabola that is the graph of the frequency is at t=0 or t=t1

__iter__()#
__next__()#

Implementation for iterator

Returns:

Next value from source

__slots__ = ()#