math_functions (pmrf.math_functions)
Math functions.
Functions
Return the magnitude of the complex argument. |
|
|
Return the magnitude in dB of a complex number (as \(20\log_{10}(|z|)\)). |
Return the magnitude in dB of a complex number (as \(10\log_{10}(|z|)\)). |
|
Return the angle complex argument in radian. |
|
Returns the angle complex argument in degrees. |
|
Take a complex number and returns quadrature, which is (length, arc-length from real axis). |
|
Return real and imaginary parts of a complex number. |
|
Break up a complex array into all possible scalar components. |
|
|
Convert linear magnitude to dB. |
|
Convert magnitude to decibels. |
|
Convert linear magnitude to dB (factor 10). |
Convert dB to linear magnitude. |
|
|
Convert decibels to magnitude. |
|
Convert dB (factor 10) to linear magnitude. |
|
Convert linear magnitude and phase (in deg) arrays into a complex array. |
|
Convert dB magnitude and phase (in deg) arrays into a complex array. |
|
Convert a value in decibel (dB) to neper (Np). |
|
Convert a value in Nepers (Np) to decibel (dB). |
|
Convert angles from radians to degrees. |
|
Convert angles from degrees to radians. |
|
Convert length in feet to meter. |
|
Convert length in meter to feet. |
Convert attenuation values given in dB/100ft to dB/100m. |
|
|
Unwrap a phase given in radians. |
|
Return the square root of a complex number, with sign chosen to match z_approx. |
|
Create new vector from z1, z2 choosing elements with sign matching z_approx. |
|
Return z1 or z2 depending on which is closer to z_approx. |
Take the square root of a complex number with unwrapped phase. |
|
|
Calculate Dirac function. |
|
Calculate Neumans number. |
|
Calculate the null space of matrix A. |
|
Convert inf and -inf's to large numbers. |
|
Calculate the cross ratio of a quadruple of distinct points on the real line. |
|
Make a function f(scalar) into f(complex). |
Serialize a list/array of complex numbers. |
|
Unserialize a list/array of real and imag numbers into a complex array. |
|
|
Broadcast multiply array x by array by along a specified axis. |
|
Sum blocks of size n along a specified axis. |
|
Multiply blocks of size n along a specified axis. |
|
Convolve interleaved signals (e.g. real/imag parts stored sequentially). |
|
Calculate the Root Mean Square (RMS) of the input. |
|
Convert polar coordinates to rectangular (complex) coordinates. |
|
Convert rectangular (complex) coordinates to polar coordinates. |
|
Solves x @ A = B. |
|
Nudge eigenvalues with absolute value smaller than max(cond * max(eigenvalue), min_eig) to that value. |
|
Nudge small singular values to avoid singularities using SVD. |
|
Stabilize matrix inversion by adding a tiny epsilon to the diagonal. |
|
Round to a specific number of significant digits. |
|
The number of combinations of N things taken k at a time. |
|
Evaluate a polynomial in the power basis. |
|
Evaluate a polynomial in the Bernstein basis. |
|
Broaden data using gaussian noise by a specified percentage. |
|
Convolve interleaved signals (e.g. real/imag parts stored sequentially). |
|
Convert magnitude to decibels. |
|