detectorArrVariance

fiducia.error.detectorArrVariance(channels, knots, responseUncertaintyFrame, boundary='y0', npts=1000)[source]

Propagates uncertanity through cspline.detectorArr() to find the variance in :math:`M_{int}().

Parameters
  • channels (numpy.ndarray) – Array of DANTE channel numbers.

  • knots (numpy.ndarray) – Array of photon energies describing positions of spline knots.

  • responseUncertaintyFrame (pandas.core.frame.DataFrame) – DataFrame holding uncertainty percentages of DANTE channel responses as a function of photon energy (not normalized).

  • npts (int, optional) – Number of points used in computing the integral. The default is 1000.

Returns

  • detArrVariance (xarray.DataArray) – 2D array of channels and knot points uncertainties of shape (n, n+1).

  • detArrVarianceBoundaryCol (xarray.DataArray) – Column of variances in the cublic spline matrix corresponding to the knots at the boundary chosen with boundary.

Notes

Covariances between segments is not currently accounted for. This covariance should be small compared to the other uncertainties, but should be noted.

See also

cspline.detectorArr

Examples