| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
param.parameterized.Parameterized --+
|
base.patterngenerator.PatternGenerator --+
|
OneDPowerSpectrum
** This class has not been tested, and is still being written **
Returns the spectral density of a rolling window of the input signal each time it is called. Over time, outputs a spectrogram.
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
window_length = param.Integer(constant= True, default= 2, doc=The interval of the signal on which to perform the Fourier transform. |
|||
windowing_function = param.Parameter(default= numpy.hanning, dThis function is multiplied with the interval of signal before performing the Fourier transform (i.e. |
|||
window_overlap = param.Integer(default= 0, doc= """Amount of oAmount of overlap between each window of the signal. |
|||
sample_spacing = param.Number(constant= True, default= 1.0, do...1/samplerate,relate to time, etc... |
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Reads the given signal into a float32 array. The current position of the 'read pointer' in the signal array is given by self.location. start_location allows the starting point to be set. self.frequencies gives the DFT's sample frequencies, matching the order returned by __call__().
|
Perform a DFT (FFT) of the current sample from the signal multiplied by the smoothing window. See numpy.fft for information about the Fourier transform. |
|
|||
window_lengthThe interval of the signal on which to perform the Fourier transform. The Fourier transform algorithm is most efficient if this is a power of 2 (or can be decomposed into small prime factors - see numpy.fft).
|
windowing_functionThis function is multiplied with the interval of signal before performing the Fourier transform (i.e. it is used to shape the interval). The function chosen here dictates the tradeoff between resolving comparable signal strengths with similar frequencies, and resolving disparate signal strengths with dissimilar frequencies. See http://en.wikipedia.org/wiki/Window_function
|
window_overlapAmount of overlap between each window of the signal.
|
sample_spacing...1/samplerate,relate to time, etc...
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sun Oct 12 22:26:34 2008 | http://epydoc.sourceforge.net |