Xeno-rat
Loading...
Searching...
No Matches
NAudio.Dsp.ImpulseResponseConvolution Class Reference

Summary description for ImpulseResponseConvolution. More...

Collaboration diagram for NAudio.Dsp.ImpulseResponseConvolution:

Public Member Functions

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.
 

Detailed Description

Summary description for ImpulseResponseConvolution.

Member Function Documentation

◆ 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
inputThe input array to be convolved.
impulseResponseThe 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.

Here is the call graph for this function:

◆ 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
dataThe 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.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: