Overview
Computes the function y = ldexp(f,e) using the math library
Discussion
Computes the funtion Y = ldexp(F, E) using the math library. The function computes a floating point number starting with a fractional value F and an exponent E as: Y = F * 2^E. This function is the inverse of frexp().
Type Definition
typedef struct _ModuleFrexp { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure } ModuleFrexpClass;
Pins
Input Pins
Name: x
Description: Input signal x
Data type: float
Channel range: Unrestricted
Block size range: Unrestricted
Sample rate range: Unrestricted
Complex support: Real
Output Pins
Name: f
Description: Fractional output f
Data type: float
Name: e
Description: Exponent n
Data type: int
MATLAB Usage
File Name: frexp_module.m
M=frexp_module(NAME) Creates an Audio Weaver module that computes the function frexp(x) using the math library. This function splits a floating point number into a fraction F and an exponent E, such that the absolute value of F is in the range [0.5 1.0) and such that 2^E * F equals the input value. The output F is a floating-point value; the output E is an integer. Arguments: NAME - name of the module.