makesomenoise library documentation

version : 0.1.0

  • Index : alphabetical index of functions / classes

Summary

Library dedicated to creating random noise with specific “color”.

2 types of noises are currently available:

  • Lorentzian noise

  • Flicker noise

Signal intensity as a function of time corresponding to any noise are stored in an Oscillogram object. The Power spectral density of an Oscillogram object can be computed and is stored in a Spectrogram object.

Functions and classes

class makesomenoise.noise.Oscillogram(t, I)
Parameters:
  • t (ndarray)

  • I (ndarray)

t: ndarray

time (s)

I: ndarray

intensity (A)

display(ax, **kwargs)

displays the oscillogram

Parameters:

ax (Axes)

class makesomenoise.noise.Spectrogram(f, psd)
Parameters:
  • f (ndarray)

  • psd (ndarray)

f: ndarray

frequency (Hz)

psd: ndarray

power spectral density (W/Hz)

display(ax, **kwargs)

displays the spectrogram

Parameters:

ax (Axes)

makesomenoise.noise.lorentzian(fmin, fmax, tau, N_stat=50)

creates an Oscillogram containing Lorentzian noise

Parameters:
  • fmin (float)

  • fmax (float)

  • tau (float)

makesomenoise.noise.flicker(fmin, fmax, tau, N_stat=50)

creates an Oscillogram containing flicker noise

makesomenoise.noise.PSD(oscillo, avg, stop=400)

Computes the power spectral density of the given Oscillogram

Parameters:
  • oscillo (Oscillogram) – Oscillogram objet whose PSD is to be calculated.

  • avg (int) – averaging factor.

  • stop – no idea what this does…