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

Class ListSignalSampled

Signal --+
         |
        ListSignalSampled

Signal defined with a specific list of sample values, from 0 to some fixed length; It has the last value past the end and the first value before the start.

Instance Methods
 
__init__(self, samples, subsample)
 
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, subsample)
(Constructor)

 
Parameters:
  • samples - list of numbers