fancyTrapz2¶
-
fiducia.cspline.
fancyTrapz2
(energyNorms, yChis, segments, responseFrame, channels)[source]¶ Trap rule integration of the folding between our \(M_{y \chi}\) matrix and response function matrix, with respect to normalized photon energy, for each channel. The result should be a matrix with shape (len(channels), len(segments), len(knotIndex)).
- Parameters
energyNorms (numpy.ndarray) – 1D array of normalized photon energies
yChis (numpy.ndarray) – 3D array of \(M_{y \chi}\) values corresponding to (energyNorms, segments, knotIndex).
responses (numpy.ndarray) – 2D array of DANTE channel response functions corresponding to (energyNorms, channels).
channels (numpy.ndarray) – Array of DANTE channel numbers.
- Returns
integArr – A matrix containing the folded integration of the \(M_{y \chi}\) matrix and response function matrix, with respect to normalized photon energy. Has shape (len(channels), len(segments), len(knotIndex)).
- Return type
xarray.DataArray
Notes
Examples