(8.D.2.4) Sqrt
Overview
Computes the square root
Discussion
Computes the square root of the absolute value of the input signal. The absoulute value is computed before the square root in order to avoid issues where the input signal is <0.
Type Definition
typedef struct _ModuleSqrt
{
ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure
} ModuleSqrtClass;
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: sqrt_module.m
M=sqrt_module(NAME)
Creates a sqrt object for use with the Audio Weaver. Arguments:
NAME - name of the module.
Â