Loading

PATTERNDETECTION


gts
Since v1.0.0
Available on all platforms
See also

The PATTERNDETECTION function will detect patterns in a Geo Time Series™. The patterns it is able to detect are those extracted by the PATTERNS functions.

The following constraints are enforced:

  • pattern length must divide window size
  • quantization scale must be a power of two from 2 to 65536
  • PATTERNDETECTION can only be applied to numeric Geo Time Series™ which are bucketized and filled (i.e. no bucket with missing values).
  • the patterns to detect must have been extracted with the same quantization scale and pattern length, the window size can be different.

Signature

Examples

// Create a new GTS and bucketize it NEWGTS 1 720 <% DUP 2 * PI * 360 / COS NaN NaN NaN 4 ROLL ADDVALUE %> FOR [ SWAP bucketizer.last 720 1 0 ] BUCKETIZE 0 GET DUP 32 8 16 PATTERNS VALUES // List of patterns 16 // Window size 8 // Pattern length 16 // Quantization scale PATTERNDETECTION