Module sig :: Class ListSignal
[frames] | no frames]

Class ListSignal

Signal --+
         |
        ListSignal

Signal defined with a specific list of sample values, from 0 to some fixed length; It has value 0 elsewhere.

Instance Methods
 
__init__(self, samples)
 
sample(self, n)
 
__str__(self)

Inherited from Signal: __add__, __mul__, __rmul__, crossings, mean, period, plot, samplesInRange

Instance Variables
  samples
The non-zero sample values of this signal (starting at index 0)
  length
The length of the explicitly-represented part of this signal
Method Details

__init__(self, samples)
(Constructor)

 
Parameters:
  • samples - list of numbers