integratePowerStream

class integratePowerStream : public kotekan::Stage

A simple stage to take a radioPowerStream and sum down.

This is a simple signal processing block which takes power data from an input buffer, integrates over time, and stuffs the results into an output buffer. Input and output buffers need not be the same length.

Todo:

Update once we have a formal radioPowerStream buffer format.

Add metadata to allow different data types for in/out.

Buffers

  • in_buf Input kotekan buffer containing power data to be integrated.

    • Format: Array of uint

    • Metadata: none

  • out_buf Output kotekan buffer, where integrated samples will be placed.

    • Format: Array of uint

    • Metadata: none

Author

Keith Vanderlinde

Param integration:

Int. Number of time samples to sum.

Public Functions

integratePowerStream(kotekan::Config &config, const std::string &unique_name, kotekan::bufferContainer &buffer_container)

Constructor.

virtual ~integratePowerStream()

Destructor.

virtual void main_thread() override

Primary loop, which waits on input frames, integrates, and dumps to output.