splineCoordsInv

fiducia.cspline.splineCoordsInv(energyNorm, energyStart, energyEnd)[source]

Given a normalized energy value and the bounds of a spline segment, return the un-normalized photon energy value. This is the inverse of splineCoords().

Parameters
  • energyNorm (float, numpy.ndarray) – Normalized photon energy

  • 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.

Returns

energy – Absolute photon energy (un-normalized).

Return type

float, numpy.ndarray

Notes

Examples