Class BO.filters.Convolution
Extends
BO.filters.FilterBase.
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.
Defined in: Convolution.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
BO.filters.Convolution(kernel)
This class performs a convolution operation of the inputs.
|
| Field Attributes | Field Name and Description |
|---|---|
|
An array of coefficients to be used with product-sum operations for input buffers.
|
|
| <static> <constant> |
BO.filters.Convolution.LPF
Low-pass filter kernel.
|
| <static> <constant> |
BO.filters.Convolution.MOVING_AVERAGE
Moving average filter kernel.
|
| Method Attributes | Method Name and Description |
|---|---|
|
processSample(val)
Override FilterBase.processSample
|
Class Detail
BO.filters.Convolution(kernel)
This class performs a convolution operation of the inputs. A low-pass filter is used to remove fine noise and
a high pass filter is used to remove drift.
- Parameters:
- {Number[]} kernel
- An array of coefficients to be used with product-sum operations for input buffers.
Field Detail
{Number[]}
coef
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.
<static> <constant>
BO.filters.Convolution.LPF
Low-pass filter kernel. Use by passing this array to the constructor.
<static> <constant>
BO.filters.Convolution.MOVING_AVERAGE
Moving average filter kernel. Use by passing this array to the constructor.
Method Detail
processSample(val)
Override FilterBase.processSample
- Parameters:
- val
