stationary_gaussian module

class SignalForge.stationary_gaussian.StationaryGaussian(fpsd: ndarray, psd: ndarray, T: float, fs: float = None, dfpsd: float = 0.5, name: str = '', var: str = 'x', unit: str = '$m/s^2$', seed: int = None, interp: str = 'lin')[source]

Bases: SingleChanSignal

Generates a stationary Gaussian signal with a specified power spectral density (PSD). This class inherits from SingleChanSignal.

Parameters:
  • fpsd (np.ndarray) – Frequency vector of the power spectral density.

  • psd (np.ndarray) – Power spectral density values.

  • T (float) – Duration of the signal (in seconds).

  • dfpsd (float, optional) – Frequency discretization for PSD storage, by default 0.5.

  • name (str, optional) – Name of the signal (for plots), by default “”.

  • var (str, optional) – Variable name (for plots), by default “x”.

  • unit (str, optional) – Unit of measurement of the signal (for plots), by default “$m/s^2$”.

  • seed (int, optional) – Seed for the random generator (for reproducibility), by default None.

  • interp (str, optional) – Interpolation method for PSD (“lin” or “log”), by default “lin”.