Skip to content
Open
1 change: 1 addition & 0 deletions doc/changes/dev/13774.other.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Clarify that the default minimum number of neighbors for clusters is 0 in :func:`mne.stats.permutation_cluster_test` and :func:`mne.stats.spatio_temporal_cluster_test`, by `Athish M`_.
8 changes: 8 additions & 0 deletions mne/stats/cluster_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -1243,6 +1243,10 @@ def permutation_cluster_test(
References
----------
.. footbibliography::
Note: By default, the minimum number of neighboring
points (e.g., channels) required to form a cluster is 0.
This means a single significant point can
technically constitute a cluster.
Comment on lines +1242 to +1245
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this note is in the References section. There's a "Notes" section right above.

"""
stat_fun, threshold = _check_fun(X, stat_fun, threshold, tail, "between")
return _permutation_cluster_test(
Expand Down Expand Up @@ -1543,6 +1547,10 @@ def spatio_temporal_cluster_test(
References
----------
.. footbibliography::
Note: By default, the minimum number of neighboring
points (e.g., channels) required to form a cluster is 0.
This means a single significant point can
technically constitute a cluster.
Comment on lines +1546 to +1549
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't put notes in References section.

"""
# convert spatial_exclude before passing on if necessary
if spatial_exclude is not None:
Expand Down
Loading