Document toolboxDocument toolbox

(8.D.2.5) Abs

Overview

Absolute value

Discussion

Computes the absolute value of a multichannel signal. The function is applied on a sample-by-sample basis. The module is multi-type and supports floating-point, fractional, and integer signals. The class Abs operates on floating-point data while AbsInt operates on both integer and fractional values.

Type Definition

typedef struct _ModuleAbs { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure } ModuleAbsClass;

Pins

Input Pins

Name: in

Description: Input signal

Data type: float

Channel range: Unrestricted

Block size range: Unrestricted

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: Output signal

Data type: float

MATLAB Usage

File Name: abs_module.m

M=abs_module(NAME) Creates an absolute value block for use with Audio Weaver. Arguments: NAME - name of the module.

Â