| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
base.parameterizedobject.ParameterizedObject --+
|
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 |
|||
|
|||
window_length = <topo.base.parameterclasses.Integer object at The interval of the signal on which to perform the Fourier transform. |
|||
windowing_function = <topo.base.parameterizedobject.Parameter This function is multiplied with the interval of signal before performing the Fourier transform (i.e. |
|||
window_overlap = <topo.base.parameterclasses.Integer object atAmount of overlap between each window of the signal. |
|||
sample_spacing = <topo.base.parameterclasses.Number object at ...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.0beta1 on Thu Feb 21 15:25:07 2008 | http://epydoc.sourceforge.net |