BO.filters.Convolution Class
The Convolution object performs low-pass, high-pass and moving average filtering on an analog input. See Breakout/examples/filters/convolution.html for an example application.
Constructor
BO.filters.Convolution
-
kernel
Parameters:
-
kernel
NumberAn array of coefficients to be used with product-sum operations for input buffers.
Item Index
Methods
Properties
- coef
- Convolution.HPF static
- Convolution.LPF static
- Convolution.MOVING_AVERAGE static
Methods
processSample
-
val
Process the value to be filtered and return the filtered result.
Parameters:
-
val
NumberThe input value to be filtered.
Returns:
The resulting value after applying the filter.
Properties
coef
Number
An array of coefficients to be used with product-sum operations for input buffers. If assigned a new array, the input buffer will be cleared.
Convolution.HPF
Unknown
static
High-pass filter kernel. Use by passing this array to the constructor.
Convolution.LPF
Unknown
static
Low-pass filter kernel. Use by passing this array to the constructor.
Convolution.MOVING_AVERAGE
Unknown
static
Moving average filter kernel. Use by passing this array to the constructor.