Skip to content

OpenBIMRL | Mathematical operator functions

Class path: math.operators.similarity

Similarity

similarity1.png

Description

The similarity node compares two numbers for their similarity to a given tolerance.

Input

Input Name Type Description
0 A Number Number that is compared
1 B Number Number with which is compared
2 Tolerance Number Tolerance value (absolute)

Output

Output Name Type Description
0 A-B<=Tolerance? Boolean Boolean that indicates whether Input0 +/- Input2 = Input1
1 Difference Number Difference of Input0 and Input1

Use/Example

similarity2.png

Node representation with sample values

Sample file

Download of a sample file so that the user can test the usage himself