Summary description for ImpulseResponseConvolution.
More...
|
float[] | Convolve (float[] input, float[] impulseResponse) |
| Convolves the input array with the given impulse response and returns the resulting array.
|
|
void | Normalize (float[] data) |
| Normalizes the input array of floating-point numbers by dividing each element by the maximum absolute value in the array, if it exceeds 1.0.
|
|
Summary description for ImpulseResponseConvolution.
◆ Convolve()
float[] NAudio.Dsp.ImpulseResponseConvolution.Convolve |
( |
float[] | input, |
|
|
float[] | impulseResponse ) |
|
inline |
Convolves the input array with the given impulse response and returns the resulting array.
- Parameters
-
input | The input array to be convolved. |
impulseResponse | The impulse response array used for convolution. |
- Returns
- The convolved array obtained by convolving input with impulseResponse .
This method performs convolution by sliding the impulse response over the input array and accumulating the weighted sum at each position. The resulting array is normalized using the Normalize method before being returned.
◆ Normalize()
void NAudio.Dsp.ImpulseResponseConvolution.Normalize |
( |
float[] | data | ) |
|
|
inline |
Normalizes the input array of floating-point numbers by dividing each element by the maximum absolute value in the array, if it exceeds 1.0.
- Parameters
-
data | The array of floating-point numbers to be normalized. |
This method iterates through the input array to find the maximum absolute value. If the maximum absolute value exceeds 1.0, each element in the array is divided by the maximum absolute value to normalize the data.
The documentation for this class was generated from the following file: