knotFind

fiducia.response.knotFind(channels, responseFrame, forceKnot=array([], dtype=float64), knotBoundary=0, boundary='y0')[source]

Find knot points.

Find knot points for cubic splines based on positions of K-edges of each DANTE channel filter.

Parameters
  • channels (list, numpy.ndarray) – List or array of relevant channels

  • responseFrame (pandas.core.frame.DataFrame) – Pandas dataFrame containing response functions for each DANTE channel. See loadResponses().

  • forceKnot (numpy.ndarray) – Numpy array where first column is channelNumber and second column is the corresponding photonEnergy we wish to force. Use this for channels that do not have a distinct K-edge.

  • knotBoundary (float) – Photon energy value for either y_0 or y_{n+1} boundary condition. This value gets appended to the array of photon energies otherwise found by knotFind().

Returns

knotsAppend – An array of knot points, with each element corresponding to a channel or boundary condition.

Return type

numpy.ndarray

Notes

Examples