Nanodrop.Spectrum
(nanodrop v0.3.1)
Copy Markdown
Absorbance spectrum data structure.
Contains wavelengths (nm) and corresponding absorbance values, calculated from raw intensity data using Beer-Lambert law:
A = -log10((sample - dark) / (blank - dark))
Summary
Functions
Returns the absorbance at a specific wavelength (nearest match).
Filters the spectrum to a wavelength range.
Creates a spectrum from wavelength and absorbance lists.
Finds the wavelength with maximum absorbance.
Returns the number of data points.
Subtracts baseline values from absorbance.
Returns the wavelength range as {min, max}.
Types
@type t() :: %Nanodrop.Spectrum{ absorbance: [float()], timestamp: DateTime.t() | nil, wavelengths: [float()] }
Functions
Returns the absorbance at a specific wavelength (nearest match).
Filters the spectrum to a wavelength range.
Creates a spectrum from wavelength and absorbance lists.
Finds the wavelength with maximum absorbance.
@spec size(t()) :: non_neg_integer()
Returns the number of data points.
Subtracts baseline values from absorbance.
Accepts either another Spectrum or a list of values.
Returns the wavelength range as {min, max}.