lumicks.pylake.calculate_power_spectrum

calculate_power_spectrum(data, sample_rate, fit_range=(100.0, 23000.0), num_points_per_block=2000)

Compute power spectrum and returns it as a PowerSpectrum.

Parameters:
data : np.array

Data used for calibration.

sample_rate : float

Sampling rate [Hz]

fit_range : tuple (f_min, f_max), optional

Tuple of two floats, indicating the frequency range to use for the full model fit. Default: (1e2, 23e3) [Hz]

num_points_per_block : int, optional

The spectrum is first block averaged by this number of points per block. Default: 2000.

Returns:
PowerSpectrum

Estimated power spectrum based.