frequency_phasor§

typed_lisa_toolkit.frequency_phasor(frequencies: AT, amplitudes: Array[Any, ModuleType] | ndarray[tuple[Any, ...], dtype[Any]], phases: Array[Any, ModuleType] | ndarray[tuple[Any, ...], dtype[Any]]) FrequencyPhasor[Axis[AT]][source]§
typed_lisa_toolkit.frequency_phasor(frequencies: AxisT, amplitudes: Array[Any, ModuleType] | ndarray[tuple[Any, ...], dtype[Any]], phases: Array[Any, ModuleType] | ndarray[tuple[Any, ...], dtype[Any]]) FrequencyPhasor[AxisT]

Build a FrequencyPhasor.

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

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

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

Note

See the general description of the shape convention.