RawDataModel

class RawDataModel(**kwargs)

Bases: MetaModel

Subclass of MetaModel for processing raw signal data.

Includes methods to compute PSDs and integrate noise.

Public Methods

RawDataModel.calculate_psd(psd_data, samplerate)

Calculate a psd for each dataset in the list, assuming a common samplerate

RawDataModel.integrate_noise(f, Pxx)

Compute the integrated noise from a power spectral density.

This method integrates the power spectral density (PSD) over frequency to obtain the cumulative root-mean-square (RMS) noise as a function of frequency. It assumes evenly spaced frequency bins.

Parameters:
  • f (numpy.ndarray or list[float]) – Array of frequency values (Hz), evenly spaced.

  • Pxx (numpy.ndarray or list[float]) – Power spectral density values corresponding to f.

Returns:

Array of integrated RMS noise values for each frequency point.

Return type:

numpy.ndarray

Private Methods

RawDataModel._init()

Perform additional initialization specific to the algorithm being implemented. Must be implemented by subclasses.

This function is called at the end of the class constructor to perform additional initialization specific to the algorithm being implemented. kwargs provided to the base class constructor are available as class attributes.