Synopsis
filter 1D data by convolving with a specified filter kernel array
Input Ports
in_field |
Mesh+Node_Data |
kernels |
float[] |
ui_parent |
user interface parent object |
Output Ports
out_fld |
Mesh + Node_Data |
out_obj |
output renderable object |
Description
filter_1D takes as its input an object that has a Node_Data subobject and performs filtering (convolution) of data values based on an array of kernels. The kernels array can be a float array of any size. The module internally normalizes the kernels array so that the sum of its elements always equals one.
filter_1d outputs the input mesh with new node data containing the convolved values.
The first output value comes from overlaying the middle element of the kernel with the first data value and performing the sum of products, and so on.
Input Ports
in_field
Mesh+Node_Data. The 1D field containing the data to filter.
kernels
float[]. Array of floats describing the filter kernel. This array is convolved with the in_field data to produce the output. Note that this array is automatically normalized so the sum of its values is 1.
ui_parent
A port to connect to a user interface object that contains the macro's widgets. By default, it is connected to the default user interface object in the application in which the macro is instanced. (This default connection is not drawn.)
Parameters
data component
UIradioBoxLabel. Selects which component of the data to filter.
Output Ports
out_fld
Mesh+Node_Data. Contains the filtered data.
out_obj
Renderable object corresponding to out_fld.
Example
Not available.
File
v/modules.v
See also
Not applicable.