Float |
The Float1DCorrelation type exposes the following members.
Name | Description | |
---|---|---|
Float1DCorrelation(FloatVector, Int32) | Constructs a correlation instance and defines the correlation kernel, and input signal data length. | |
Float1DCorrelation(Single, Int32) | Constructs a correlation instance and defines the correlation kernel, and input signal data length. | |
Float1DCorrelation(Single, Int32, Int32, Int32) | Constructs a correlation instance and defines the correlation kernel with a given offset and stride. |
Name | Description | |
---|---|---|
DataLength |
Gets the length of the correlation data.
(Inherited from CorrelationBase) | |
KernelLength |
Gets the length of the correlation kernel.
(Inherited from CorrelationBase) | |
KernelShape |
Gets the shape of the convolution kernel.
(Inherited from CorrelationBase) | |
Length |
Gets the length of the correlation.
(Inherited from CorrelationBase) |
Name | Description | |
---|---|---|
Clone | Creates a deep copy of this correlation instance. | |
Correlate(FloatVector) | Computes the correlation between the stored correlation kernel, and the vector data. | |
Correlate(Single) | Computes the correlation between the stored correlation kernel, and the vector data. | |
Correlate(FloatVector, FloatVector) | Computes the correlation between the stored correlation kernel, and the vector data. | |
Correlate(Single, Single) | Computes the correlation between the stored correlation kernel, and the vector data. | |
Dispose |
Clean up resources.
(Inherited from CorrelationBase) | |
Finalize |
Provides non-deterministic destruction of underlying unmanaged resources.
(Inherited from CorrelationBase) | |
TrimConvolution | Creates a clipped view into the correlation. This does not create a copy of the input correlation. | |
TrimCorrelationT |
Creates a windowed view into the correlation. This does not create a copy of the input correlation.
(Inherited from CorrelationBase) |
Name | Description | |
---|---|---|
kerneloffset_ |
Offset into correlation kernel.
(Inherited from CorrelationBase) | |
kernelstride_ |
Correlation kernel stride.
(Inherited from CorrelationBase) | |
mode_ |
Mode is either automatic, fft, or direct sum.
(Inherited from CorrelationBase) |
FloatVector kernel = new FloatVector(1, 2, 3, 1); FloatVector data = new FloatVector(1, 2, 3, 4, 5, 6); Float1DCorrelation corr = new Float1DCorrelation(kernel, data.Length); FloatVector correlation = corr.Correlate(data); FloatVector corr_full_kernel_overlap = corr.TrimConvolution(correlation, CorrelationBase.Windowing.FullKernelOverlap); FloatVector corr_centered = corr.TrimConvolution(correlation, CorrelationBase.Windowing.CenterWindow); // correlation = [1 5 11 18 25 32 32 17 6] // corr_centered = [11 18 25 32 32 17] // corr_full_kernel_overlap = [18 25 32]