Skip to content

Commit d609a07

Browse files
committed
Fixed #876 Improved Q_subseq_isconstant description
1 parent 8748994 commit d609a07

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

stumpy/core.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,9 +1640,9 @@ def mass(
16401640
corresponding value set to False in this boolean array.
16411641
16421642
Q_subseq_isconstant : numpy.ndarray or function, default None
1643-
A boolean array that indicates whether a subsequence in `Q` is constant
1643+
A boolean array that indicates whether the subsequence in `Q` is constant
16441644
(True). Alternatively, a custom, user-defined function that returns a
1645-
boolean array that indicates whether a subsequence in `Q` is constant
1645+
boolean array that indicates whether the subsequence in `Q` is constant
16461646
(True). The function must only take two arguments, `a`, a 1-D array,
16471647
and `w`, the window size, while additional arguments may be specified
16481648
by currying the user-defined function using `functools.partial`. Any
@@ -1812,7 +1812,7 @@ def _mass_distance_matrix(
18121812
Sliding standard deviation of `T`
18131813
18141814
Q_subseq_isconstant : numpy.ndarray
1815-
A boolean array that indicates whether a subsequence in `Q` is constant (True)
1815+
A boolean array that indicates whether the subsequence in `Q` is constant (True)
18161816
18171817
T_subseq_isconstant : numpy.ndarray
18181818
A boolean array that indicates whether a subsequence in `T` is constant (True)
@@ -1898,9 +1898,9 @@ def mass_distance_matrix(
18981898
corresponding value set to False in this boolean array.
18991899
19001900
Q_subseq_isconstant : numpy.ndarray, function, default None
1901-
A boolean array that indicates whether a subsequence in `Q` is constant
1901+
A boolean array that indicates whether the subsequence in `Q` is constant
19021902
(True). Alternatively, a custom, user-defined function that returns a
1903-
boolean array that indicates whether a subsequence in `Q` is constant
1903+
boolean array that indicates whether the subsequence in `Q` is constant
19041904
(True). The function must only take two arguments, `a`, a 1-D array,
19051905
and `w`, the window size, while additional arguments may be specified
19061906
by currying the user-defined function using `functools.partial`. Any

stumpy/gpu_stump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def _compute_and_update_PI_kernel(
9090
A boolean array that indicates whether a subsequence in `T` is constant (True)
9191
9292
Q_subseq_isconstant : numpy.ndarray
93-
A boolean array that indicates whether a subsequence in `Q` is constant (True)
93+
A boolean array that indicates whether the subsequence in `Q` is constant (True)
9494
9595
w : int
9696
The total number of sliding windows to iterate over

stumpy/maamp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def _multi_mass_absolute(Q, T, m, Q_subseq_isfinite, T_subseq_isfinite, p=2.0):
2828
Window size
2929
3030
Q_subseq_isfinite : numpy.ndarray
31-
A boolean array that indicates whether a subsequence in `Q` contains a
31+
A boolean array that indicates whether the subsequence in `Q` contains a
3232
`np.nan`/`np.inf` value (False)
3333
3434
T_subseq_isfinite : numpy.ndarray
@@ -499,7 +499,7 @@ def _get_first_maamp_profile(
499499
The half width for the exclusion zone relative to the `start`.
500500
501501
T_B_subseq_isfinite : numpy.ndarray
502-
A boolean array that indicates whether a subsequence in `Q` contains a
502+
A boolean array that indicates whether a subsequence in `T_B` contains a
503503
`np.nan`/`np.inf` value (False)
504504
505505
p : float, default 2.0

stumpy/mpdist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def _mpdist_vect(
5757
Sliding standard deviation of `T`
5858
5959
Q_subseq_isconstant : numpy.ndarray
60-
A boolean array that indicates whether a subsequence in `Q` is constant (True)
60+
A boolean array that indicates whether the subsequence in `Q` is constant (True)
6161
6262
T_subseq_isconstant : numpy.ndarray
6363
A boolean array that indicates whether a subsequence in `T` is constant (True)

stumpy/mstump.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _multi_mass(
5555
A boolean array that indicates whether a subsequence in `T` is constant (True)
5656
5757
Q_subseq_isconstant : numpy.ndarray
58-
A boolean array that indicates whether a subsequence in `Q` is constant (True)
58+
A boolean array that indicates whether the subsequence in `Q` is constant (True)
5959
6060
query_idx : int, default None
6161
This is the index position along each of the time series in `T`, where
@@ -483,7 +483,7 @@ def _multi_distance_profile(
483483
A boolean array that indicates whether a subsequence in `T_A` is constant (True)
484484
485485
Q_subseq_isconstant : numpy.ndarray
486-
A boolean array that indicates whether a subsequence in `T_B` is
486+
A boolean array that indicates whether the subsequence in `T_B` is
487487
constant (True)
488488
489489
include : numpy.ndarray, default None
@@ -875,7 +875,7 @@ def _compute_multi_D(
875875
sliding window
876876
877877
Q_subseq_isconstant : numpy.ndarray
878-
A boolean array that indicates whether a query subsequence in `Q`
878+
A boolean array that indicates whether the query subsequence in `Q`
879879
is constant (True)
880880
881881
T_subseq_isconstant : numpy.ndarray
@@ -1009,7 +1009,7 @@ def _mstump(
10091009
is constant (True)
10101010
10111011
Q_subseq_isconstant : numpy.ndarray
1012-
A boolean array that indicates whether a query subsequence in `Q`
1012+
A boolean array that indicates whether the query subsequence in `Q`
10131013
is constant (True)
10141014
10151015
k : int

stumpy/scrump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _preprocess_prescrump(
7878
Sliding window standard deviation for `T_B`
7979
8080
Q_subseq_isconstant : numpy.ndarray
81-
A boolean array that indicates whether a subsequence in `Q` is constant (True)
81+
A boolean array that indicates whether the subsequence in `Q` is constant (True)
8282
8383
T_subseq_isconstant : numpy.ndarray
8484
A boolean array that indicates whether a subsequence in `T` is constant (True)

stumpy/stamp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _mass_PI(
6464
corresponding value set to False in this boolean array.
6565
6666
Q_subseq_isconstant : numpy.ndarray or function, default None
67-
A boolean array that indicates whether a subsequence in `Q` is constant
67+
A boolean array that indicates whether the subsequence in `Q` is constant
6868
(True). Alternatively, a custom, user-defined function that returns a
6969
boolean array that indicates whether a subsequence in `Q` is constant
7070
(True). The function must only take two arguments, `a`, a 1-D array,

0 commit comments

Comments
 (0)