Skip to main content
Skip table of contents

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

CODE
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

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

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.