Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Documents: Update page title prefix

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 Block
typedef struct _ModuleAbs
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
} ModuleAbsClass;

Pins

Input Pins

Name: in

Description: Input signal

...

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 Block
 M=abs_module(NAME)
 Creates an absolute value block for use with Audio Weaver.
 
 Arguments:
    NAME - name of the module.

...