jaxrts.instrument_function.instrument_from_array
- jaxrts.instrument_function.instrument_from_array(x: Quantity, ints: Array | Quantity) Callable[[Quantity], Quantity][source]
Set instrument function from an array input. The intensities have to have the same length as the energy shift.
- Parameters:
x (Quantity) – \(\omega\) or energy shift. Should be given in units of 1/time or in energy units.
ints (jnp.ndarray | float | Quantity) – Intensity values of Instrument function.
- Returns:
Callable – The instrument function, which takes one singular argument (the frequency shift), and returns the weight of this shift. The function is normalized to one.