Acoular 21.05 documentation

TimeAverage

«  TimePower   ::   tprocess   ::   TimeReverse  »

TimeAverage

class acoular.tprocess.TimeAverage

Bases: acoular.tprocess.TimeInOut

Calculates time-dependent average of the signal

naverage = Int(64, …

Number of samples to average over, defaults to 64.

sample_freq = Property( depends_on = 'source.sample_freq, naverage')

Sampling frequency of the output signal, is set automatically.

numsamples = Property( depends_on = 'source.numsamples, naverage')

Number of samples of the output signal, is set automatically.

result(num)

Python generator that yields the output block-wise.

Parameters
numinteger

This parameter defines the size of the blocks to be yielded (i.e. the number of samples per block).

Returns
Average of the output of source.

Yields samples in blocks of shape (num, numchannels). The last block may be shorter than num.

«  TimePower   ::   tprocess   ::   TimeReverse  »