Overview
Computes sample statistics over multichannel fract32 signals
Discussion
This module calculates the sample statistics of the input fract32 signal on a sample-by-sample basis. The input pin can have an arbitray number of interleaved channels and the sample statistics calculation occurs over all channels. The output pin has only a single channel and a blockSize equal to that of input.
...
The module also exposes the computed signal as a state variable. The variable instantaneousValue holds the block statistics of the block.
Type Definition
Code Block |
---|
typedef struct _ModuleSampleStatisticsFract32 { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure INT32 statisticsType; // Type of statistics calculated: 0=maximum, 1=minimum, 2=maximum absolute value, 3=minimum absolute value. fract32 instantaneousValue; // Instantaneous output value. } ModuleSampleStatisticsFract32Class; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
statisticsType | int | parameter | 0 | 0 | 0:3 | |
instantaneousValue | fract32 | state | 0 | 0 | -60:10 |
Pins
Input Pins
Name: in
Description: Audio input
...
Sample rate range: Unrestricted
Complex support: Real
Output Pins
Name: out
Description: Sample statistics output
...
Description: Index value
Data type: int
MATLAB Usage
File Name: sample_statistics_fract32_module.m
...