Class StatComputer
Defined in File StatComputer.h
Class Documentation
-
class StatComputer
Class used for processing a stream of voltage data, including weights.
Public Functions
Create instance of a Stat Computer object.
- Parameters
data_config – the configuration current data stream involving the data block.
weights_config – the configuration current data stream involving the weights block.
storage – a shared pointer to the in memory storage of the computed statistics.
-
virtual ~StatComputer()
Destroy the Stat Computer object.
-
bool compute(const ska::pst::common::SegmentProducer::Segment &segment)
compute the statistics for block of data.
- Parameters
segment – the segment of data and weights for which statistics are computed
- Returns
true all of the input samples were processed, the stored statistics are valid
- Returns
false input sampling was interrupted, the stored statistics are invalid
-
void initialise()
initialise the StatComputer class in readiness for computing data.
This method needs to be called after there has been a resize of the StatStorage, otherwise there the size of data may not be as expected.
-
void interrupt()
interrupt the computation of statistics from the segment.