SimpleCrosscorr

class SimpleCrosscorr : public kotekan::Stage

Kotekan stage to compute four spectral products (AA, BB, Re{AB*}, Im{AB*}) from two complex-float input streams and integrate over time.

Both input buffers’ frame lengths must be integer multiples of the spectrum length. Per integration the stage emits 4 * spectrum_length floats followed by a single uint32_t holding the integration count, into the output buffer.

Buffers

  • in_bufA Input kotekan buffer A.

    • Format: Array of complex float (interleaved float pairs)

    • Metadata: none

  • in_bufB Input kotekan buffer B.

    • Format: Array of complex float (interleaved float pairs)

    • Metadata: none

  • out_buf Output kotekan buffer.

    • Format: Array of float + trailing uint32_t per integration

    • Metadata: none

Author

Keith Vanderlinde

Param spectrum_length:

Int (default 1024). Number of samples in the spectrum.

Param integration_length:

Int (default 1024). Number of time samples to sum.

Public Functions

SimpleCrosscorr(kotekan::Config &config, const std::string &unique_name, kotekan::bufferContainer &buffer_container)
~SimpleCrosscorr() override
virtual void main_thread() override