jaxrts.instrument_function.FromArray.__init__

FromArray.__init__(x, ints)[source]

Generate an InstrumentFunction from an array input. The intensities I have to have the same length as the energy shift x.

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.