Versions Compared

Key

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

...

The frequency-value: A value smaller than 1 means, that the tuple occurred less frequent (seldom) in the small window (compared to the big window). A value bigger than 1 means, that the tuple occurred more often in the small window.

Parameters

...

  • negativeTolerance The tolerance to the negative side (if less tuples of type 'a' occur in the small window in comparisson to the big window). Standard is 0.3, which means 30% less is allowed
  • positiveTolerance The tolerance to the positive side (if more tuples of type 'a' occur in the small window in comparisson to the big window). Standard is 0.3, which means 30% more is allowed
  • deliverFirstElements Normally the operator starts to compare the frequencies when the big window is at least as big as the small window. With this option set to true, the comparison will start with the first tuple reaching this operator. Default is false.

Example

Code Block
linenumberstrue
#PARSER PQL
#ADDQUERY
bigWindow = ELEMENTWINDOW({
                size = 2000
              },
              System.state
            )
smallWindow = ELEMENTWINDOW({
                  size = 500
                },
                System.state
              )
frequencyAnalysis = FREQUENCYCOMPARE({
                        negativetolerance = 0.4,
                        positivetolerance = 0.4,
                        deliverfirstelements = 'true'
                      },
                      bigWindow,
                      smallWindow
                    )