time_phasor§

typed_lisa_toolkit.time_phasor(times: AT, amplitudes: Array[Any, ModuleType] | ndarray[tuple[Any, ...], dtype[Any]], phases: Array[Any, ModuleType] | ndarray[tuple[Any, ...], dtype[Any]]) TimePhasor[Axis[AT]][source]§
typed_lisa_toolkit.time_phasor(times: AxisT, amplitudes: Array[Any, ModuleType] | ndarray[tuple[Any, ...], dtype[Any]], phases: Array[Any, ModuleType] | ndarray[tuple[Any, ...], dtype[Any]]) TimePhasor[AxisT]

Build a TimePhasor.

Parameters:
  • times – Either an Axis, a Linspace, or a 1D array of time points. In the last two cases, the axis will be automatically created with the time points as values.

  • amplitudes (Array) – Either an array of shape (n_batch, n_channels, n_harmonics, 1, Nt) where Nt is the size of times, or a 1D array of shape (Nt,) that will be broadcasted to the shape (1, 1, 1, 1, Nt). Must be of the same shape as phases.

  • phases (Array) – Either an array of shape (n_batch, n_channels, n_harmonics, 1, Nt) where Nt is the size of times, or a 1D array of shape (Nt,) that will be broadcasted to the shape (1, 1, 1, 1, Nt) Must be of the same shape as amplitudes.

Note

See the general description of the shape convention.