It looks like you're new here. Sign in or register to get started.

sqrt(pow((attr1-attr2), 2))

sgn(a-b)*(a-b)

## Answers

1,996RM Engineeringbecause there is no explicit function to get absolute values at the moment, I'd suggest the following: Edit: I concede! See Marius' answer below

Regards,

Marco

3,517RM Data ScientistDortmund, Germany

1,869Unicornwhy not simply use your subject line?

abs(attr1-attr2) will also work perfectly in Generate Attributes

~Marius

32Contributor IIThanks very much for the answers! :-) I got now more solutions. But I think, if rapidminer can put the abs() also in the function list, will be better. Because abs() will be often used.