|
Code Packages
1
Add-on code processing modules
|
Provides basic functions for signal analysis More...
Static Public Member Functions | |
| static double [] | Amplitude (double[] A, double dB) |
| Amplify/attenuate the amplitude of a real signal by level in decibells (dB) More... | |
| static double [] | AmplitudeGain (double[] A_out, double[] A_in) |
| Returns the amplitude gain in decibels (dB) between an input and an output signal More... | |
| static double [] | AutoCorrelation (double[] A) |
| Perform auto-correlation operation More... | |
| static double [] | Convolution (double[] A, double[] H) |
| Perform convolution operation in time domain More... | |
| static double [] | CrossCorrelation (double[] A, double[] H) |
| Perform cross-correlation operation More... | |
| static double [] | DecibelToLinear (double[] A) |
| Converts signal amplitude from decibels scale to linear More... | |
| static T [] | Difference< T > (T[] A) |
| First-difference function More... | |
| static double [] | DownSample (double[] A, int factor) |
| Reduce the sampling rate of a array by integer factor More... | |
| static double [] | LinearToDecibel (double[] A) |
| Converts signal amplitude from a linear scale to decibels More... | |
| static T [] | MixDownF< T > (Func< T[], T > f, params T[][] args) |
| Function to perform mix-down operations on multiple signals More... | |
| static T [] | MovingF< T > (T[] A, int size, Func< T[], T > f) |
| Function to perform operations on a signal using a moving window More... | |
| static double [] | Normalize (double[] A) |
| Normalize array level in the range from minus one to one (-1:1) More... | |
| static double [] | NormalizeOne (double[] A) |
| Normalize array level to a length of one More... | |
| static double [] | Power (double[] A, double dB) |
| Amplify/attenuate the power of a real signal by level in decibells (dB) More... | |
| static double [] | PowerGain (double[] A_out, double[] A_in) |
| Returns the power gain in decibels (dB) between an input and an output signal More... | |
| static T [] | RunningSum< T > (T[] A) |
| Running-sum function More... | |
| static T [] | SeriesF< T > (T[] A, Func< T, T > f) |
| Function to perform calculations on each sample of a signal More... | |
| static bool [] | Threshold (double[] A, double limit) |
| Check which samples of an array are below a specified limit More... | |
| static double [] | ThresholdR (double[] A, double limit) |
| Check which samples of an array are below a specified limit More... | |
| static double [] | UpSample (double[] A, int factor) |
| Increase the sampling rate of a array by integer factor. More... | |
| static double [] | ZeroHold (double[] A, int factor) |
| Implements Zero-order hold by an integer factor. More... | |
Provides basic functions for signal analysis
|
static |
Amplify/attenuate the amplitude of a real signal by level in decibells (dB)
| A | real array |
| dB | level in decibels |

Example
|
static |
Returns the amplitude gain in decibels (dB) between an input and an output signal
| A_in | real array (input) |
| A_out | real array (output) |

Example
|
static |
Perform auto-correlation operation
Auto-correlation performs convolution of one array with the reversed version of itself.
The returned array has length equal to size(A)*2-1
| A | real array |
Example
|
static |
Perform convolution operation in time domain
The two arrays are fully immersed each other. The returned array has length equal to size(A)+size(H)-1
| A | real array |
| H | real array (kernel) |
Example
|
static |
Perform cross-correlation operation
Cross-correlation performs convolution of one array with the reversed version of the other.
The returned array has length equal to size(A)+size(H)-1.
| A | real array |
| H | real array (kernel) |
Example
|
static |
Converts signal amplitude from decibels scale to linear
| A | real array |

Example
|
static |
First-difference function
|
static |
Reduce the sampling rate of a array by integer factor
Downsample(x,n) decreases the sampling rate of x by keeping every n-th sample starting with the first sample.
| A | real array |
| factor | down-sampling factor |
Example
|
static |
Converts signal amplitude from a linear scale to decibels
| A | real array |

Example
|
static |
Function to perform mix-down operations on multiple signals
MixDownF can handle input functions that have more than one parameter by using the lamda operator =>
The size of the return array is equal to the first input array.
| f | input function which returns a single number and takes as input an array |
| args | multiple arrays |
Example
|
static |
Function to perform operations on a signal using a moving window
MovingF can handle input functions that have more than one parameter by using the lamda operator =>
The size of the return array is equal to the input array.
| A | array |
| size | size of window (buffer) |
| f | input function which returns a single number and takes as input an array |
Example
|
static |
Normalize array level in the range from minus one to one (-1:1)
| A | real array |
Example
|
static |
Normalize array level to a length of one
| A | real array |
Example
|
static |
Amplify/attenuate the power of a real signal by level in decibells (dB)
| A | real array |
| dB | level in decibels |

Example
|
static |
Returns the power gain in decibels (dB) between an input and an output signal
| A_in | real array (input) |
| A_out | real array (output) |

Example
|
static |
Running-sum function
|
static |
Function to perform calculations on each sample of a signal
SeriesF can handle input functions that have more than one parameter by using the lamda operator =>
| A | array |
| f | input function which returns a number |
Example 1
Example 2
|
static |
Check which samples of an array are below a specified limit
| A | real array |
| limit | maximum value |
Example
|
static |
Check which samples of an array are below a specified limit
| A | real array |
| limit | maximum value |
Example
|
static |
Increase the sampling rate of a array by integer factor.
upsample(x,n) increases the sampling rate of x by inserting n-1 zeros between samples.
| A | real array |
| factor | up-sampling factor |
Example
|
static |
Implements Zero-order hold by an integer factor.
| A | real array |
| factor | zero-hold factor |
Example