ltbio.processing.noises.Noise#

Overview#

Classes#

Noise

-

Contents#

class ltbio.processing.noises.Noise.Noise(sampling_frequency: float, name: str = None)#
property name#

The name of the Timeseries, if any.

property samples: numpy.ndarray#

The last generated samples using indexing.

property sampling_frequency: float#

The frequency at which the samples were produced, in Hz.

plot(show: bool = True, save_to: str = None)#

Plots the last generated samples or a 1-minute example of the noise relative amplitude. @param show: True if plot is to be immediately displayed; False otherwise. @param save_to: A path to save the plot as an image file; If none is provided, it is not saved.

resample(frequency: float)#

Resamples the noisy data to the frequency specified.