Skip to content

Commit 3c4a00a

Browse files
committed
Updated docs on max_motifs parameter to return all valid motifs
1 parent d6bfb4a commit 3c4a00a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

stumpy/mmotifs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ def mmotifs(
7373
motif. The first match is always the self/trivial-match for each motif.
7474
7575
max_motifs : int, default 1
76-
The maximum number of motifs to return.
76+
The maximum number of motifs to return. To consider returning all possible
77+
valid motifs, try setting `max_motifs` to the length of your input matrix
78+
profile (i.e., `max_motifs=len(P)`
7779
7880
atol : float, default 1e-8
7981
The absolute tolerance parameter. This value will be added to ``max_distance``

stumpy/motifs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ def _motifs(
7272
the first match is always the self-match/trivial-match for each motif.
7373
7474
max_motifs : int
75-
The maximum number of motifs to return.
75+
The maximum number of motifs to return. To consider returning all possible
76+
valid motifs, try setting `max_motifs` to the length of your input matrix
77+
profile (i.e., `max_motifs=len(P)`)
7678
7779
atol : float, default 1e-8
7880
The absolute tolerance parameter. This value will be added to `max_distance`

0 commit comments

Comments
 (0)