lentil.radiometry.Spectrum.ends#
- Spectrum.ends(tol=0.0001)[source]#
Locate the indices defining the continuous nonzero portion of the
valueThe first and last indices where the normalized
Spectrum.valueis greater thantoldefine the bounds of the retained portion of theSpectrum.- Parameters:
tol (float, optional) – Relative tolerance used to find ends. Default is 1e-4