Struct sea_canal::Analyzer [] [src]

pub struct Analyzer { /* fields omitted */ }

Identifies patterns that describe a given sequence.

Methods

impl Analyzer
[src]

Creates a new Analyzer from a slice of integers.

Same as from_slice, but also finds meta-patterns.

Same as from_slice, but allows custom patterns elements to be specified.

Creates a new Analyzer, specifying custom pattern elements and whether meta-patterns should be found.

Attempts to find exactly one pattern of n operations that described the given sequence.

Attempts to find exactly one pattern of maximum size max (in terms of number of operations) that describes the given sequence. It returns the smallest such pattern it can find .

Finds all patterns with n operations that describe the given sequence.

Finds patterns of maximum size max (in terms of number of operations) that describe the given sequence. It will return all such patterns that are of minimal size (i.e. if a sequence can be described by a pattern of two operations, it will return all such patterns, but none of size three or greater).