Represent infinite signals. This is a generic superclass that
provides some basic operations. Every subclass must provide a
sample
method.
|
plot(self,
start=0,
end=100,
newWindow=' Signal value versus time ' ,
color=' blue ' ,
parent=None,
ps=None,
xminlabel=0,
xmaxlabel=0,
yOrigin=None)
Make a plot of this signal. |
|
|
|
__add__(self,
other)
Returns:
New signal that is the sum of self and
other . |
|
|
|
__rmul__(self,
scalar)
Returns:
New signal that is self scaled by a constant. |
|
|
|
__mul__(self,
scalar)
Returns:
New signal that is self scaled by a constant. |
|
|
|
period(self,
n=None,
z=None)
Returns:
an estimate of the period of the signal, or 'aperiodic' if it can't
get a good estimate |
|
|
|
crossings(self,
n=None,
z=None)
Returns:
a list of indices into the data where the signal crosses the z value,
up through time n |
|
|
|
mean(self,
n=None)
Returns:
sample mean of the values of the signal from 0 to n |
|
|
|
samplesInRange(self,
lo,
hi)
Returns:
list of samples of this signal, from lo to
hi-1
|
|
|