splineCoords¶
-
fiducia.cspline.
splineCoords
(energy, energyStart, energyEnd)[source]¶ Convert photon energy value into normalized coordinates for a particular spline region.
- Parameters
energy (float, numpy.ndarray) – Energy value to be converted into normalized spline coordinate.
energyStart (float) – Lower bound energy for the spline region based on knot points.
energyEnd (float) – Upper bound energy for the spline region based on knot points.
normCoord (float) – Return value of energy converted into normalized spline coordinates.
- Returns
normCoord – Normalized energy coordinate(s).
- Return type
float, numpy.ndarray
Notes
Examples