oefilter
last edited 4 years ago by lusil
description
This part is filtering odd and even numbers by mode filter. It means, the part takes a mode (0 or 1) and a double number. If the filter mode is 0 it means that we want to output only even numbers and of the filter mode is 1 similarly odd numbers. The part takes 0 if we want to return even numbers only. If the number is even, it returns, if it is not even, the part is not returning any value.
figure

inpins
- SETDBL - ID = 1 - Sets a double number to check whether it is odd or even
- SETDBL – double
- FILTER - ID = 2 - Sets the filter mode whether we want to check odd numbers or even numbers. It should be 0 if we want to get even numbers and 1 if we want to get odd numbers
- FILTER – int
outpins
- OUT - double - ID = 51 - it is the same number as double if it corresponds to filter mode. It means that, if the mode is 0 and inputed number is even, OUT is the same numbers as SETDBL, if the mode is 0 and SETDBL is not EVEN, there is no returned value. For mode=1 it works similarly for odd doubles.
links to cvs
configuration file revision 1.0:http://cvs.sourceforge.net/viewcvs.py/*checkout*/vcb/VCB/libraries/configs/filter at sourceforge.net
status
alpha release