Audio Effects Framework
|
class with static functions for buffer operations with type float More...
#include <Vector.h>
Static Public Member Functions | |
static void | setZero (float *pfSrcDest, int iLength) |
static void | setZeroBelowThresh (float *pfSrcDest, int iLength, float fThresh) |
static void | copy (float *pfDest, const float *pfSource, int iLength) |
static void | flip_I (float *pfSrcDest, int iLength) |
static void | moveInMem (float *pfSrcDest, int iDestIdx, int iSrcIdx, int iLength) |
static void | setValue (float *pfDest, float fValue, int iLength) |
static void | mulC_I (float *pfSrcDest, float fScale, int iLength) |
static void | mul_I (float *pfSrcDest, const float *pfSrc, int iLength) |
static float | mulScalar (const float *pfSrc1, const float *pfSrc2, int iLength) |
static void | div_I (float *pfSrcDest, const float *pfSrc, int iLength) |
static void | add_I (float *pfSrcDest, const float *pfSrc, int iLength) |
static void | addC_I (float *pfSrcDest, float fScale, int iLength) |
static void | sub_I (float *pfSrcDest, const float *pfSrc, int iLength) |
static float | sum (const float *pfSrc, int iLength, bool bAbs=false) |
static bool | isEqual (const float *pfSrc1, const float *pfSrc2, int iLength) |
static float | getMean (const float *pfSrc, long long int iLength) |
static float | getStd (const float *pfSrc, long long int iLength, float fMean=std::numeric_limits< float >::max()) |
static float | getRms (const float *pfSrc, long long int iLength) |
static float | getMax (const float *pfSrc, long long int iLength, bool bAbs=false) |
static float | getMin (const float *pfSrc, long long int iLength, bool bAbs=false) |
static void | findMax (const float *pfSrc, float &fMax, long long &iMax, long long int iLength, bool bAbs=false) |
static void | findMin (const float *pfSrc, float &fMin, long long &iMin, long long int iLength, bool bAbs=false) |
class with static functions for buffer operations with type float
|
inlinestatic |
element-wise vector addition
pfSrcDest | one input and output buffer |
pfSrc | second input buffer |
iLength | number of element to be added |
|
inlinestatic |
adds a buffer to a scalar
pfSrcDest | buffer to be added |
fScale | scalar |
iLength | number of element to be added |
|
inlinestatic |
copies buffer of type float
pfDest | pointer to destination memory |
pfSource | pointer to source memory |
iLength | length of buffer |
|
inlinestatic |
element-wise vector division
pfSrcDest | one input and output buffer |
pfSrc | second input buffer |
iLength | number of element to be divided |
|
inlinestatic |
finds the maximum (absolute) value in the buffer
pfSrc | input buffer |
fMax | resulting output value |
iMax | index of the resulting output value |
iLength | number of elements in buffer |
bAbs | bool to specify whether we search absolute values |
|
inlinestatic |
finds the minimum (absolute) value in the buffer
pfSrc | input buffer |
fMin | resulting output value |
iMin | index of the resulting output value |
iLength | number of elements in buffer |
bAbs | bool to specify whether we search absolute values |
|
inlinestatic |
reverses buffer (last to first element)
pfSrcDest | pointer to memory to be flipped |
iLength | number of elements |
|
inlinestatic |
finds the maximum (absolute) value in the buffer
pfSrc | input buffer |
iLength | number of elements in buffer |
bAbs | bool to specify whether we search absolute values |
|
inlinestatic |
extracts the mean value
pfSrc | input buffer |
iLength | number of elements in buffer |
|
inlinestatic |
finds the minimum (absolute) value in the buffer
pfSrc | input buffer |
iLength | number of elements in buffer |
bAbs | bool to specify whether we search absolute values |
|
inlinestatic |
extracts the root mean square from a buffer
pfSrc | input buffer |
iLength | number of elements in buffer |
|
inlinestatic |
extracts the standard deviation (biased) from a buffer
pfSrc | input buffer |
iLength | number of elements in buffer |
fMean | mean value if it has already been computed, otherwise it will be extracted in function |
|
inlinestatic |
checks to buffer for equality (no floating point tolerance)
pfSrc1 | buffer 1 |
pfSrc2 | buffer 2 |
iLength | number of dimensions |
|
inlinestatic |
moves a subset of the current buffer
pfSrcDest | source and destination |
iDestIdx | destination index |
iSrcIdx | source index |
iLength | number of elements to be moved |
|
inlinestatic |
element-wise vector multiplication
pfSrcDest | one input and output buffer |
pfSrc | second input buffer |
iLength | number of element to be multiplied |
|
inlinestatic |
multiplies a buffer with a scalar
pfSrcDest | buffer to be multiplied |
fScale | scalar |
iLength | number of element to be multiplied |
|
inlinestatic |
computes the scalar product between two vectors
pfSrc1 | vector one |
pfSrc2 | vector two |
iLength | number of dimenions |
|
inlinestatic |
initializes the buffer to a specific value
pfDest | pointer to memory to be initialized |
fValue | value to use |
iLength | number of elements to be set |
|
inlinestatic |
sets a buffer to zero
pfSrcDest | pointer to memory to be modified |
iLength | buffer length |
|
inlinestatic |
sets all values smaller than a threshold to 0
pfSrcDest | pointer to memory to be modified |
iLength | buffer length |
fThresh | threshold value |
|
inlinestatic |
element-wise vector subtraction
pfSrcDest | one input and output buffer |
pfSrc | second input buffer |
iLength | number of element to be subtracted |
|
inlinestatic |
computes the sum of a vector
pfSrc | vector |
iLength | length of vector |
bAbs | specifies whether it is the sum of absolute values or not |