segmentsArr¶
-
fiducia.cspline.
segmentsArr
(knots)[source]¶ Returns the bounds of each spline segment, given the spline knot points.
Returns an array of tuples of (energyMin, energyMax) describing the bounds of each spline segment, given an array of spline knots (photon energies corresponding to K-edges).
- Parameters
knots (numpy.ndarray) – numpy array of photon energies describing positions of spline knots.
- Returns
segments – A 1D array of tuples of (energyMin, energyMax), corresponding to the bounds of each spline segment. Has length of ‘len(knots) - 1’.
- Return type
numpy.ndarray
Notes
Examples