The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"[SOLVED] filtering with logical rules"
Hi,
I have some data of movements with the nominal attribute TYPE (values=foot, car, bike, ...) and the numeric attribute MAXSPEED
Now I just want to filter the examples due to some rules to drop off measure mistakes.
So I tried the operator "filter examples", but it can't handle like (TYPE=foot&&MAXSPEED<4) || (TYPE=car&&MAXSPEED<70) due to the parenthesis, I suppose...
Then I wanted to "generate an attribute", which is testing this conditions in "function expression" like (TYPE==foot&&MAXSPEED<4) to filter afterwards, but it cant test the attribute value "foot"...
How can I filter the examples due to this rules?
Thanks a lot!
I have some data of movements with the nominal attribute TYPE (values=foot, car, bike, ...) and the numeric attribute MAXSPEED
Now I just want to filter the examples due to some rules to drop off measure mistakes.
So I tried the operator "filter examples", but it can't handle like (TYPE=foot&&MAXSPEED<4) || (TYPE=car&&MAXSPEED<70) due to the parenthesis, I suppose...
Then I wanted to "generate an attribute", which is testing this conditions in "function expression" like (TYPE==foot&&MAXSPEED<4) to filter afterwards, but it cant test the attribute value "foot"...
How can I filter the examples due to this rules?
Thanks a lot!
Tagged:
0
Answers
There are always alternative methods, but take a look at the following.. You can tell I like goal driven programming, working backwards from my intended destination. Do not do it, it drives you mad... ;D
Don't want to sound grumpy, but this is a rare occasion when the help helps quite explicitly - you need double quotes, like this.
Actually I tried this with double quotes, but the mistake had an other reason... ::)