Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
"""
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.
"""
# convert spatial_exclude before passing on if necessary
if spatial_exclude is not None:
Expand Down