Package topo :: Package pattern :: Module basic :: Class Spectrogram
[hide private]
[frames] | no frames]

Class Spectrogram

source code


Extends PowerSpectrum to provide a temporal buffer, yielding a 2D representation of a fixed-width spectrogram.
Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__init__(self, signal, **params)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_create_indices(self, p) source code
 
__call__(self, **params_to_override)
Call the subclass's 'function' method on a rotated and scaled coordinate system.
source code

Inherited from base.patterngenerator.PatternGenerator: function

Inherited from param.parameterized.Parameterized: __getstate__, __repr__, __setstate__, __str__, debug, defaults, force_new_dynamic_value, get_param_values, get_value_generator, inspect_value, message, print_param_values, script_repr, set_default, set_dynamic_time_fn, set_param, state_pop, state_push, verbose, warning

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from param.parameterized.Parameterized: params, print_param_defaults

Class Variables [hide private]
  __abstract = True
bool(x) -> bool
  seconds_per_timestep = param.Number(default= 1.0, doc= ...
Number of seconds represented by 1 simulation time step.
  sample_window = param.Number(default= 1.0, doc= ...
The length of interval of the signal (in seconds) on which to perform the Fourier transform.
  name = <param.parameterized.String object at 0xb20da2c>
String identifier for this object.

Inherited from PowerSpectrum: max_frequency, min_frequency, sample_rate, window_increment, window_length, windowing_function

Inherited from base.patterngenerator.PatternGenerator: bounds, mask, mask_shape, offset, orientation, output_fns, position, scale, size, x, xdensity, y, ydensity

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, signal, **params)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

_create_indices(self, p)

source code 
Overrides: PowerSpectrum._create_indices

__call__(self, **params_to_override)
(Call operator)

source code 

Call the subclass's 'function' method on a rotated and scaled coordinate system.

Creates and fills an array with the requested pattern. If called without any params, uses the values for the Parameters as currently set on the object. Otherwise, any params specified override those currently set on the object.

Overrides: base.patterngenerator.PatternGenerator.__call__
(inherited documentation)

Class Variable Details [hide private]

__abstract

bool(x) -> bool

Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed.

Value:
True

seconds_per_timestep

Number of seconds represented by 1 simulation time step.
Value:
param.Number(default= 1.0, doc= """
        Number of seconds represented by 1 simulation time step.""")

sample_window

The length of interval of the signal (in seconds) on which to perform the Fourier transform.

How much history of the signal to include in the window. sample_window > seconds_per_timestep -> window overlap

The Fourier transform algorithm is most efficient if the resulting window_length(sample_window * sample_rate) is a power of 2, or can be decomposed into small prime factors; see numpy.fft.

Value:
param.Number(default= 1.0, doc= """
        The length of interval of the signal (in seconds) on which to
        perform the Fourier transform.

        How much history of the signal to include in the window.
        sample_window > seconds_per_timestep -> window overlap
                                         
        The Fourier transform algorithm is most efficient if the
...