lumicks.pylake.force_calibration.power_spectrum.PowerSpectrum

class PowerSpectrum(data, sample_rate, unit='V')

Power spectrum data for a time series.

Attributes:
frequency : numpy.ndarray

Frequency values for the power spectrum. [Hz]

power : numpy.ndarray

Power values for the power spectrum (typically in V^2/s).

sample_rate : float

The sampling rate for the original data. [Hz]

total_duration : float

The total duration of the original data. [seconds]

__init__(data, sample_rate, unit='V')

Power spectrum

Parameters:
data : numpy.ndarray

Data from which to calculate a power spectrum.

sample_rate : float

Sampling rate at which this data was acquired.

unit : str

Units the data is in (default: V).

Methods

__init__(data, sample_rate[, unit]) Power spectrum
downsampled_by(factor[, reduce]) Returns a spectrum downsampled by a given factor.
in_range(frequency_min, frequency_max) Returns part of the power spectrum within a given frequency range.
num_samples()
plot() Plot power spectrum
with_spectrum(power[, num_points_per_block]) Return a copy with a different spectrum
downsampled_by(factor, reduce=<function mean>)

Returns a spectrum downsampled by a given factor.

in_range(frequency_min, frequency_max)

Returns part of the power spectrum within a given frequency range.

plot()

Plot power spectrum

with_spectrum(power, num_points_per_block=1)

Return a copy with a different spectrum