コンテンツにスキップ

Combining Conditions

このコンテンツはまだ日本語訳がありません。

Combine conditions on the same window before counting it. One window may satisfy more than one condition.

To report a single share for rolls and redirects together, measure the freq of trigrams that roll or redirect with one union filter:

tri.(roll | redirect).freq

Those two rhythm categories do not overlap. To see why adding frequencies is not generally the same as taking a union, use tri.(roll | inward). On QWERTY, is both a roll and inward, and the union keeps it once.

For an inward-only rhythm measure, keep only inward rolls by joining the conditions with &:

tri.(roll & inward)

A comparison of rolls can leave out windows that repeat a physical key. Use set difference to keep rolls except those with a key_repeat:

tri.(roll \ key_repeat)

If the comparison excludes thumbs, the restriction must apply to both rhythm categories. Group the roll and redirect conditions before requiring that every event passes the no-thumb test:

tri.((roll | redirect) & every(!thumb))

Without the inner parentheses, roll | redirect & every(!thumb) keeps all rolls and restricts only redirects. See analysis query grammar for precedence.