spmviz.data.Constraints#
- class spmviz.data.Constraints(min_gap=None, max_gap=None, max_span=None, gap_unit='index')[source]#
Bases:
objectGap and span constraints of an occurrence.
- Parameters:
- min_gap, max_gap
intorfloat,optional Bounds on the distance of consecutive matched elements, \(g_{\min}\le j_{k+1}-j_k\le g_{\max}\). In index units (default)
max_gap=1means adjacent elements (SPMF convention) andmin_gapdefaults to 1. In time units (gap_unit="time") the bounds apply to timestamp differences andmin_gapdefaults to 0.- max_span
intorfloat,optional Bound on \(j_m-j_1\) (or \(t_{j_m}-t_{j_1}\)).
- gap_unit{“index”, “time”}
- min_gap, max_gap