dynsight.data_processing.getdistancebetween

dynsight.data_processing.getdistancebetween(data, spectra, distancecalculator)[source]

Generate an array with the distances between the the data and spectra.

  • Original author: Daniele Rapetti

Parameters:
  • data (np.ndarray) – the array of the data

  • spectra (np.ndarray) – the references

  • distancecalculator (Callable) – the function to calculate the distances

Returns:

the array of the distances (the shape is (data.shape[0], spectra.shape[0]))

Return type:

np.ndarray