Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The probabilistic feature provides arbitrary functions to work with discrete and continuous random variables in a data stream and provides algebraic operator (+, *, -, /) to perform probabilistic addition, subtraction, multiplication, division, and exponentiation.

Int(<ProbabilisticDouble x, Number a, Number b>|<Vector xyz,

...

Vector a,

...

Vector b>)

Estimates the multivariate normal distribution probability with lower and upper integration limit.

...

Code Block
languagejavascript
titleExample
SELECT similarity(as2DVector(x1,y1), as2DVector(x2,y2)) FROM stream

Distance(

...

<ProbabilisticDouble p, Number

...

x>|<Vector p, Vector x>)

Calculates the Mahalanobis distance between the distribution and the value. The value can be a scalar value or a vector.

Code Block
languagejavascript
titleExample
SELECT distance(as3DVector(x, y, z), [1.0;2.0;3.0]) FROM stream

KL(<ProbabilisticDouble p1, ProbabilisticDouble p2>|<Vector p1,

...

Vector p2>)

Calculates the Kullback-Leibler divergence of the two given probability distributions.

...