Warning

You are reading the documentation related to the development version. Go here if you are looking for the documentation of the stable release.

spectrochempy.denoise

denoise(dataset, ratio=99.8, **kwargs)[source]

Denoise the data using a PCA method.

Work only on 2D dataset.

Parameters
  • dataset (NDDataset or a ndarray-like object) – Input object. Must have two dimensions.

  • ratio (float, optional, default: 99.8%) – Ratio of variance explained in %. The number of components selected for reconstruction is chosen automatically such that the amount of variance that needs to be explained is greater than the percentage specified by ratio .

  • **kwargs – Optional keyword parameters (see Other Parameters).

Returns

NDDataset – Denoised 2D dataset

Other Parameters
  • dim (str or int, optional, default=’x’.) – Specify on which dimension to apply this method. If dim is specified as an integer it is equivalent to the usual axis numpy parameter.

  • log_level (int, optional, default: “WARNING”) – Set the logging level for the method.

Examples using spectrochempy.denoise

Processing RAMAN spectra

Processing RAMAN spectra