pygsti.extras.drift.signal#
Signal analysis functions for time-series data
Functions
|
Finds the amplitudes in the data at the specified frequency indices. |
|
Calculates the Bartlett power spectrum. |
|
Returns a set of frequencies to create spectra for, for the input data. |
|
Returns the Type-II discrete cosine transform of y, with an orthogonal normalization, where |
|
The omega`th DCT basis function, for a initial time of `starttime and a time-step of timedif, evaluated at the times times. |
|
Returns the discrete Fourier transform of y, with a unitary normalization, where y is an array with elements related to the x array by |
Calculates the Fourier frequencies from a set of times. |
|
|
Calculates the Fourier frequencies associated with a timestep and a total number of times. |
|
Generates a minimal sparsity probability trajectory for the specified power, and a specified number of modes containing non-zero power. |
|
Generates a probability trajectory with the specified power that is approximately Gaussian distribution accross frequencies, centered in the frequency specified by center. |
|
Inverts the dct function. |
|
Inverts the dft function. |
|
Transforms the input float x as: |
|
Implements a low-pass filter on the input array, by DCTing the input, mapping all but the lowest max_freq modes to zero, and then inverting the transform. |
|
Performs a Lomb-Scargle periodogram (lsp) on the input data, returning powers and frequencies. |
|
The p-value of the test statistic max(lambda_i) where there are numpowers lambda_i test statistics, and they are i.i.d. |
|
Implements a moving average on sequence with an averaging width of width. |
|
The Benjamini-Hockberg quasi-threshold for finding the statistically significant powers in a power spectrum. |
|
The multi-test adjusted signficance statistical significance threshold for testing numtests test statistics that all have a marginal distribution that is chi2 with dof degrees of freedom. |
|
Converts a power to a p-value, under the assumption that the power is chi2 distribution with dof degrees of freedom. |
|
Takes an arbitrary input vector p and maps it to a vector bounded within [0,1]. |
|
Returns the Hoyer sparsity index of the input vector p. |
|
Generates a power spectrum from the input time-series data. |
|
Maps the vector x over [0, counts] as |
|
Inverts the standardizer function. |