![]() | Float |
The Float1DConvolution type exposes the following members.
Name | Description | |
---|---|---|
![]() | Float1DConvolution(FloatVector, Int32) | Constructs a convolution instance and defines the convolution kernel, and input signal data length. |
![]() | Float1DConvolution(Single, Int32) | Constructs a convolution instance and defines the convolution kernel, and input signal data length. |
![]() | Float1DConvolution(Single, Int32, Int32, Int32) | Constructs a convolution instance and defines the convolution kernel with a given offset and stride. |
Name | Description | |
---|---|---|
![]() | DataLength |
Gets the length of the convolution data.
(Inherited from ConvolutionBase) |
![]() | KernelLength |
Gets the length of the convolution kernel.
(Inherited from ConvolutionBase) |
![]() | KernelShape |
Gets the shape of the convolution kernel.
(Inherited from ConvolutionBase) |
![]() | Length |
Gets the length of the convolution.
(Inherited from ConvolutionBase) |
Name | Description | |
---|---|---|
![]() | Clone | Creates a deep copy of this convolution instance. |
![]() | Convolve(FloatVector) | Computes the convolution between the stored convolution kernel, and the vector data. |
![]() | Convolve(Single) | Computes the convolution between the stored convolution kernel, and the vector data. |
![]() | Convolve(FloatVector, FloatVector) | Computes the convolution between the stored convolution kernel, and the vector data. |
![]() | Convolve(Single, Single) | Computes the convolution between the stored convolution kernel, and the vector data. |
![]() | Finalize |
Provides non-deterministic destruction of underlying unmanaged resources.
(Inherited from ConvolutionBase) |
![]() | TrimConvolution(FloatVector, ConvolutionBaseWindowing) | Creates a clipped view into the convolution. This does not create a copy of the input convolution. |
![]() | TrimConvolutionT(T, ConvolutionBaseWindowing) |
Creates a windowed view into the convolution. This does not create a copy of the input convolution.
(Inherited from ConvolutionBase) |
Name | Description | |
---|---|---|
![]() | kerneloffset_ |
Convolution kernel offset.
(Inherited from ConvolutionBase) |
![]() | kernelstride_ |
Convolution kernel stride.
(Inherited from ConvolutionBase) |
![]() | mode_ |
Mode is either automatic, fft, or direct sum.
(Inherited from ConvolutionBase) |
// 1D Convolution example // Moving average filter of length 5 float[] kernel = { .2, .2, .2, .2, .2 }; float[] data = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; Float1DConvolution conv = new Float1DConvolution(kernel, data.Length); float[] z = new float[conv.Length]; conv.Convolve(data, ref z); // Now z contains the convolution result, z = kernel*data, of length 13.