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.
Module Pack
Standard
ClassID
classID = 43
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.
Copyright (c) 2026 DSP Concepts, Inc.