...
As you can see, the probabilistic processing is not limit to PQL. You can use the same CQL syntax you already used for deterministic values.
Working with probabilistic values
Now that you know how to filter and join probabilistic values you probably want to do something with the values like performing mathematic operations on them. To do so you can use the algebraic operator (+, *, -, /, ^) on probabilistic values in i.e. a Map operator.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
maped = MAP({expressions = ['x + 2.0', 'x * 2.0', 'x * toProbabilisticDouble([1.0,0.5;2,0.5])', 'x * toProbabilisticDouble([1.0,0.5])']}, input) |
Access to tuple existence
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
filter = ExistenceToPayload(SELECT({predicate = RelationalPredicate('x > 1.0 AND x < 4.0')}, probabilistic:datainput)) |