jaxrts.instrument_function.FromArray

class jaxrts.instrument_function.FromArray(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.

Methods

__init__(x, ints)

Generate an InstrumentFunction from an array input.