queso_cluster.atoms.norm#

Functions#

normContinuum(dataSquare, continuumIndx)

Normalizes the data to the intensity of a reference position

normFunc(dataSquare, func)

Normalizes the data with a user-defined function

normMaximum(dataSquare[, windowIndx])

Normalizes the data to the maximum value in a given range

normZ(dataSquare)

Z-Normalization

Module Contents#

normContinuum(dataSquare, continuumIndx)[source]#

Normalizes the data to the intensity of a reference position

Parameters:
  • dataSquare (ndarray) – 2D array containing the spectral data

  • continuumIndx (int) – Integer index of the position to normalize with respect to

Returns:

2D array of normalized spectral data

Return type:

ndarray

normFunc(dataSquare, func)[source]#

Normalizes the data with a user-defined function

Parameters:
  • dataSquare (ndarray) – 2D array containing the spectral data

  • func (function) – user function which accepts an array and outputs an array of the same shape

Returns:

2D array of normalized spectral data

Return type:

ndarray

normMaximum(dataSquare, windowIndx=None)[source]#

Normalizes the data to the maximum value in a given range

Parameters:
  • dataSquare (ndarray) – 2D array containing the spectral data

  • windowIndx (list, optional) – List containing the beginning and end (inclusive) of the desired range to find maximum. If not set, this function will use the full avaliable range of the data

Returns:

2D array of normalized spectral data

Return type:

ndarray

normZ(dataSquare)[source]#

Z-Normalization

Parameters:

dataSquare (ndarray) – 2D array containing the spectral data

Returns:

2D array of normalized spectral data

Return type:

ndarray