SpectralModelFactory¶
(Source code, png, hires.png, pdf)

class
SpectralModelFactory
(*args)¶ Base class for spectral model factory.
 Parameters
 mySpectralModelFactoryImplementation
SpectralModelFactoryImplementation
One spectral factory algorithm.
By default, the Welch factory algorithm
WelchFactory
.
 mySpectralModelFactoryImplementation
Notes
Let be a multivariate second order stationary process, with zero mean, where . We only treat here the case where the domain is of dimension 1: (n=1).
If we note its covariance function, then for all is (ie ), with as this quantity does not depend on .
The bilateral spectral density function exists and is defined as the Fourier transform of the covariance function :
where is the set of ddimensional positive definite hermitian matrices.
Depending on the available data, we proceed differently :
if the data correspond to several independent realizations of the process, the estimation is done using the empirical estimator;
if the data correspond to one realization of the process, we suppose the process is ergodic to split the realization into several ones.
Methods
build
(self, \*args)Estimate the spectral model from data.
getClassName
(self)Accessor to the object’s name.
getFFTAlgorithm
(self)Accessor to the FFT algorithm used for the Fourier transform.
getId
(self)Accessor to the object’s id.
getImplementation
(self, \*args)Accessor to the underlying implementation.
getName
(self)Accessor to the object’s name.
setFFTAlgorithm
(self, fft)Accessor to the FFT algorithm used for the Fourier transform.
setName
(self, name)Accessor to the object’s name.

__init__
(self, *args)¶ Initialize self. See help(type(self)) for accurate signature.

build
(self, *args)¶ Estimate the spectral model from data.
 Available constructors:
build(myTimeSeries)
build(myProcessSample)
 Parameters
 myTimeSeries
TimeSeries
The time series from which the spectral model is estimated.
 myProcessSample
ProcessSample
The sample of time series from which the spectral model is estimated.
 myTimeSeries
 Returns
 mySpectralModel
SpectralModel
The estimated spectral model.
 mySpectralModel

getClassName
(self)¶ Accessor to the object’s name.
 Returns
 class_namestr
The object class name (object.__class__.__name__).

getFFTAlgorithm
(self)¶ Accessor to the FFT algorithm used for the Fourier transform.
 Returns
 fftAlgo
FFT
The FFT algorithm used for the Fourier transform.
 fftAlgo

getId
(self)¶ Accessor to the object’s id.
 Returns
 idint
Internal unique identifier.

getImplementation
(self, *args)¶ Accessor to the underlying implementation.
 Returns
 implImplementation
The implementation class.

getName
(self)¶ Accessor to the object’s name.
 Returns
 namestr
The name of the object.

setFFTAlgorithm
(self, fft)¶ Accessor to the FFT algorithm used for the Fourier transform.
 Parameters
 fftAlgo
FFT
The FFT algorithm used for the Fourier transform.
 fftAlgo

setName
(self, name)¶ Accessor to the object’s name.
 Parameters
 namestr
The name of the object.